Jump to content

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']; ?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.