Jump to content

[SOLVED] Passing a variable between pages in php5


TheHeretic

Recommended Posts

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.  ???

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.

Archived

This topic is now archived and is closed to further replies.

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