yeahyeahyeah Posted March 28, 2007 Share Posted March 28, 2007 just a quick one trying to make a button that when clicked goes to the page EditSite.php?site_id=** where the stars are the number generated from the php varible $site_id. When I run this code below it just takes me to EditSite.php <form action="EditSite.php?site_id=<?php echo $site_id; ?>" method="get"> <input type="submit" value="Edit Site" /> </form> where have i gone wrong? thanks Link to comment https://forums.phpfreaks.com/topic/44694-button-link-php-htm/ Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 Try this: <form action="editsite.php" method="get"> <input type="submit" value="Edit Site" /> <input type="hidden" name="site_id" value="<? echo "$site_id"; ?>"> </form> Link to comment https://forums.phpfreaks.com/topic/44694-button-link-php-htm/#findComment-217137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.