This topic is locked

Not redirecting to view page

4/4/2008 9:46:07 AM
PHPRunner General questions
B
bbanks author

Using PHPRunner 4.2 I have this code in the after add event:
header("Location: HPTuners_view.php?editid1=".$keys["ID"]);
All I want to do is send them to the View Page after filling out the form but here is where it takes them:
http://www.mywebsite.com/HPTuners_view.php?editid1=
to a blank page.
What am I doing wrong?
Thanks in advance for your help.

Sergey Kornilov admin 4/4/2008

It looks like $keys["ID"] variable is not populated.
Post your application to Demo Account and send the URL to support@xlinesoft.com.

B
bbanks author 4/4/2008

It looks like $keys["ID"] variable is not populated.

Post your application to Demo Account and send the URL to support@xlinesoft.com.


Is it because the ID field is not actually on the form?

Because I thought I had tried it both ways even though I don't really want the ID visible.
I did find a work around so it is working now.

Here is what I finally found in the forum that works:

HPTuners_view.php?editid1=".mysql_insert_id());