Jump to content

passing a dynamic variable over a link


muat

Recommended Posts

Hey,

I want to be able to pass a value as a variable over a link when the user clicks on a thumbnail at the end of a row in a table. obviously each row will bare a different resuly as a different value should be passed.

 

i managed to get this to work whe i was workin using a localhost how my system has gone livee it seems to not pick up the variable value

 

here is how i did it:

 

                      <td><a href="../admin/DeleteCustomerSearchProcess.php?customercode=<? echo $row[CustomerCode];?>"><img src="../../images/delete.png" width="16" height="16" /></a></td>

                      <td><a href="../admin/AmendCustomerSearchProcess.php?customercode=<? echo $row[CustomerCode];?>"><img src="../../images/pencil.gif" width="20" height="21" border="0" /></a></td>

 

 

eg the user clicks on customer A1, and the links detects that the customercode = 1 and sends that number accross the link??

 

any thoughts????

 

Link to comment
https://forums.phpfreaks.com/topic/101184-passing-a-dynamic-variable-over-a-link/
Share on other sites

I am just gettin a blank page now...

 

when this wored in localhost for me, when i hovered over a thumbnail on a particualr line the link wud appear at the botton of the screen and the value would be there and it wud change if i moved the cursor

 

eg

 

http://www.libraseafoods.com/LogOn/admin/ViewCustomers.php?customercode = 3

 

now it says

 

http://www.libraseafoods.com/LogOn/admin/ViewCustomers.php?customercode = <? echo $row['CustomerCode']; ?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.