This topic is locked

send ID to a different page using GET

6/3/2009 12:38:28 PM
PHPRunner General questions
J
justinjools author

I want to send ID from a table list to an edit page (a different table):
vehicle_list to results_edit
I have looked at these two files and changed FORM METHOD="GET" but it doesnt work?
but when using PHPRunner files normally i.e. vehicle_list to vehicle_edit it works no problem...
Can anyone offer any advice?

A
ashipley 6/3/2009

If I understand you correctly, when at the vehicle list page and you click on edit, the ID is there automatically because it is the ID field o the record that you are editing andis just another field on the form. Nothing special ad to be done to transfer the ID field from the list page to the edit page. I believe that for the GET command to work on the receiving form (Page), you will have to do something like POST on the sending form (Page).

J
Jane 6/4/2009

Hi,
you can change Edit link in the List page: After record processed event on the Events tab.

Here is a sample:

$editlink="editid1=".$data["RecordID"];

$record["editlink_attrs"]="href=\"AnotherTableName_edit.asp?".$editlink."\" ";



where RecordID is your actual field name where key is stored.