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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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