is it possible to add url with input form ? |
[eluser]ludo31[/eluser]
Hello I would like to know if it is possible to add url when we use input form : before : I use this code : Code: <?php $segments = array('shop', 'produit',$r->libelle_genre,$r->libelle_style,$r->id ); ?> but I would like to cnage it like this : Code: <?php echo form_open('shop/produit'); ?> but my problem is url is just shop/produit but before I have : shop/produit/genre/style/id and I would like to know if it is possible !! thanks
[eluser]Samus[/eluser]
I don't think it is, definately not possible with POST. You could get that URL with using GET though. Only thing is you'd end up getting an url like: shop/produit/?genre=genre_val&style=style_val&id=id_val someone else might know.
[eluser]ludo31[/eluser]
Thanks for you answer ; you know why I ask this question because my problem is I would like to create a breadcrumb in my shopping cart file : in my class Shop I have to function add(to add product) and panier Code: public function add() { and in my url when I execute that and shop/panier (view file ) Quote:http://localhost/MonSite/index.php/shop/panierit's normal because I make Code: $data['content'] = 'shop/panier'; but I would like to change the url and add gender and shoes something like that : shop > panier > gender > shoes that's why I ask you if it's possible to add url in this case !! thanks because in my breadcrumb there is just : shop > panier
[eluser]Clooner[/eluser]
As I see it, it would be possible, why not? did you try it? Code seems fine to me!
[eluser]ludo31[/eluser]
yes this code work well but in the url it show just : panier > shop not panier > shop > gender > baskets or example to do that we must add url |
Welcome Guest, Not a member yet? Register Sign In |