jeff5656 Posted April 5, 2009 Share Posted April 5, 2009 I want to carry over two variables when a user clicks this link. One is $row['id_incr'] and the other is subm $subm = 'y'; <td bgcolor="#FFFFFF" ><a href="xray_editpatient.php?action=edit&id=<?php echo $row['id_incr']; ?>?id2=<?php echo $subm; ?>"> However when the form gets run the variable is blank <?php echo "id2 is " . $_GET['id2'];?> Link to comment https://forums.phpfreaks.com/topic/152671-solved-two-s-to-carry-over-two-variables/ Share on other sites More sharing options...
wildteen88 Posted April 5, 2009 Share Posted April 5, 2009 variables are separated by ampersands (eg &) within urls not ? marks $subm = 'y'; <td bgcolor="#FFFFFF" ><a href="xray_editpatient.php?action=edit&id=<?php echo $row['id_incr']; ?>&id2=<?php echo $subm; ?>"> Link to comment https://forums.phpfreaks.com/topic/152671-solved-two-s-to-carry-over-two-variables/#findComment-801767 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.