View Full Version : Dynamic Link

05-18-2011, 03:54 PM
Hello i have the following question.

At the moment

I have the following link and i pass the charid info to the next page

<a href="products.php?charID=add&charid=2"><?php echo $row_char2['charname']; ?>

Is there a way the charid pass to the next page more dynamically instead to right each time that its equal 2-4 ets

05-18-2011, 04:24 PM
<a href="products.php?charID=add&charid=<?php echo $_REQUEST['charid']; ?>"><?php echo $row_char2['charname']; ?>

05-18-2011, 04:42 PM
i got an error my friend using this

05-18-2011, 04:43 PM
ok, what does the error say?

05-18-2011, 04:49 PM
its ok i had to modified my query a bit and i add the charid like u said tnx for info man

<a href="products.php?add&charid=<?php echo $row_char2['charid']; ?>"><?php echo $row_char2['charname']; ?>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum