TheHeretic Posted September 15, 2007 Share Posted September 15, 2007 Calling page builds this link printf("<td align=center><font size=2 face='Arial, Helvetica, sans-serif'><a href=ad_editmgroup.php?grp_id=%s>Edit</a></font></td>", $myrow["grp_id"]); In the receiving page am using $grp_id = $_POST['grp_id']; $grp_id is not being loaded from the calling page url, probably cause I have the wrong function or something?..... ?grp_id=%s resolves to ?grp_id=2 on the record I am testing against. ??? Quote Link to comment https://forums.phpfreaks.com/topic/69440-solved-passing-a-variable-between-pages-in-php5/ Share on other sites More sharing options...
watthehell Posted September 15, 2007 Share Posted September 15, 2007 printf("<td align=center><a href=ad_editmgroup.php?myid=".$grp_id.">Edit</a></td>", $myrow['grp_id']); And on other page use $yourvarname=$_REQUEST['myid']; Quote Link to comment https://forums.phpfreaks.com/topic/69440-solved-passing-a-variable-between-pages-in-php5/#findComment-348930 Share on other sites More sharing options...
TheHeretic Posted September 15, 2007 Author Share Posted September 15, 2007 Thanks dude that's fixed it. Okay since the page is working, thanks to the fine folks at php freaks, I'm pulling up stumps grabbing a beer and getting ready for the World Cup. Really glad I've found this site, will post up a few links at other places. BTW will be hitting the forums with lots of questions as am working on movie review software, which of course will be freely available to anyone who wants it. First version might be a bit rough as haven't even gone near php functions as yet. Big learning curve, but must say php is a whole lot of fun to work with. Quote Link to comment https://forums.phpfreaks.com/topic/69440-solved-passing-a-variable-between-pages-in-php5/#findComment-348932 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.