This topic is locked
[SOLVED]

 Redirection event modification

10/5/2010 12:58:48 AM
PHPRunner General questions
S
smith author

Redirection event modification

I want to redirect the edit or add page to view page with and like to get the edited as the same in the view page URL.

In the event

header("Location: vis_entry_view.php");

exit();
I want to change to

header("Location: vis_entry_view.php?editid=#");

exit();

where " #" s stands for the editid which is to be dynamic during redirection depending on the add page editid value

How to do this
Smith

A
ann 10/5/2010

Smith,
here is the correct code (After record added/updated event on the Events tab):

header("Location: vis_entry_view.php?editid1=".$keys["KeyFieldName"]);

exit();



where KeyFieldName is your actual numerical key field name.