Hi all, a problem with passing varibales: <A href ='totalClientinfo.php?id= <?echo $id; ?>'>Total Info</A></td>
now when i go to totalClieninfo.php...how do iget the id ? when i do echo $id...it says id is empty... ??
$GET for GET method and $POST for post method, so in you case use <? echo $_GET['id']; ?>
$GET['id'] When you did echo $id;and it said it was empty because register_globals was off.. meaning you have to use
<?php $id = $_GET['id']; echo $id; ?>
works 🙂
ok, But how would i transfer multiple varibales this way? <A href ='submit.php?email= <?echo $email;?> ?password=<?$password;?> </a> doens't work!
didnt u read my reply to ur other post? http://www.phpbuilder.com/board/showthread.php?s=&threadid=10248373
print "<a href=\"http://www.mydomain.com/delete.php?id=".$id."&x=" . $s . "\">";