Welcome Guest, Not a member yet? Register   Sign In
is it possible to add url with input form ?
#1

[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 ); ?>


                    
                       <a href="&lt;?php echo site_url($segments); ?&gt;"><br/>

          
            
                                &lt;?php  echo img('image/supplement/cart.png');?&gt;

                       </a>

but I would like to cnage it like this :

Code:
&lt;?php echo form_open('shop/produit'); ?&gt;
                    
                    
                    &lt;input type="hidden" name="genre" value="&lt;?php echo $r-&gt;libelle_genre ;?&gt;" /&gt;
  
                &lt;input type="hidden" name="style" value="&lt;?php echo $r-&gt;libelle_style ;?&gt;" /&gt;
  
  
                    &lt;input type="hidden" name="identifiant" value="&lt;?php echo $r-&gt;id ;?&gt;" /&gt;
  
                    &lt;input type="submit" value="Ajouter" /&gt;
                    
                    
                    
                    &lt;?php echo form_close();?&gt;

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



Messages In This Thread
is it possible to add url with input form ? - by El Forum - 04-15-2012, 06:24 AM
is it possible to add url with input form ? - by El Forum - 04-15-2012, 08:33 AM
is it possible to add url with input form ? - by El Forum - 04-15-2012, 09:20 AM
is it possible to add url with input form ? - by El Forum - 04-15-2012, 05:41 PM
is it possible to add url with input form ? - by El Forum - 04-16-2012, 12:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB