Page 1 of 1

Parse Form Parameter

Posted: Fri Mar 28, 2008 1:43 pm
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

Re: Parse Form Parameter

Posted: Fri Mar 28, 2008 3:15 pm
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?

Re: Parse Form Parameter

Posted: Fri Mar 28, 2008 4:01 pm
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

Re: Parse Form Parameter

Posted: Fri Mar 28, 2008 4:49 pm
by Christopher
Post your code.