Parse Form Parameter

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kananga
Forum Newbie
Posts: 6
Joined: Thu Mar 13, 2008 9:37 am

Parse Form Parameter

Post by kananga »

Hi there,

I have a form that updates a record in a database...At the moment on Update the user is directed to another page....

Is there a way i can parse the ID value that was just updated to the other page like a hyperlink e.g.

Code: Select all

?recordID=<?php echo $row_record['ID']; ?>
......Because i need to parse the ID to the other page!


Is this possible??? If so how please??

Code: Select all

 $updateGoTo = "view_details.php";
Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Parse Form Parameter

Post by Christopher »

kananga wrote:Is there a way i can parse the ID value that was just updated to the other page like a hyperlink e.g.

Code: Select all

?recordID=<?php echo $row_record['ID']; ?>
......Because i need to parse the ID to the other page!
Not sure what "parse teh ID value" means, but you can certainly use values from the form as parameter values in the redirect. What have you tried?
(#10850)
kananga
Forum Newbie
Posts: 6
Joined: Thu Mar 13, 2008 9:37 am

Re: Parse Form Parameter

Post by kananga »

Hi there ,

Thaks for rreply...i meant "parse the ID" (primary key id that is updated)..


Ive tried the obivous like:

Code: Select all

$updateGoTo = "view_details.php?recordID=<?php $row_record['ID']?>;
but no good :(.....

Also tried adding:

Code: Select all

$updateGoTo .= '&' . $_POST['ID'];
Still no good :( When i test it the brwoser address says: view_details.php?&53..

But when it should read: view_details.php?recordID=53....

The query that uses the parsed ID on the 2nd page is set to = recordID value...

I think im close but not there yet....

Any ideas please?

Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Parse Form Parameter

Post by Christopher »

Post your code.
(#10850)
Post Reply