Forums
This topic is locked
After Updating, Go To
Posted 06 Sep 2006 19:24:33
1
has voted
06 Sep 2006 19:24:33 Robert Robinette posted:
I have a two connected pages calupdate.php and calupdate2.php. The first page sends a variable to the second page which displays the contents of the record. I have an update record server behavior attached to the second page. In the update record dialog I have chosen to send the user back to the first page (calupdate.php) after the record is updated. However, in the browser, the second page (calupdate2.php) only refreshes and displays the same info as before. The only difference is the URL changes by adding a question mark after. "www.xxxxxxx.com/calupdate2.php?"I want the page to go back to calupdate.php after updating. What am I not doing?
Thanks in advance for anyone's help.
Rob
Dreamweaver MX/ PHP/ MySQL
Replies
Replied 06 Sep 2006 19:53:16
06 Sep 2006 19:53:16 Roddy Dairion replied:
have you done
header ("Location: www.xxxxxxxx.com/calupdate.php");
header ("Location: www.xxxxxxxx.com/calupdate.php");
Replied 07 Sep 2006 01:18:14
07 Sep 2006 01:18:14 Robert Robinette replied:
Hey. Thanks for the response. I'm not quite sure what you mean, however.
Replied 07 Sep 2006 11:26:34
07 Sep 2006 11:26:34 Roddy Dairion replied:
well on the calupdate2.php once the update is done before the closing php tag '?>' just add this line
header ("Location: link to calupdate.php page"
header ("Location: link to calupdate.php page"
Replied 08 Sep 2006 01:22:05
08 Sep 2006 01:22:05 Robert Robinette replied:
I tried what you wrote. It gave me the same result. When I looked at the source code this was at the bottom:
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at d:\home\hnt27b190\calupdate2.php:2) in <b>d:\home\hnt27b190\calupdate2.php</b> on line <b>449</b><br />
This so weird. I've never had this problem. It just won't go back to the original page.
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at d:\home\hnt27b190\calupdate2.php:2) in <b>d:\home\hnt27b190\calupdate2.php</b> on line <b>449</b><br />
This so weird. I've never had this problem. It just won't go back to the original page.
Replied 08 Sep 2006 10:04:13
08 Sep 2006 10:04:13 Roddy Dairion replied:
can you send the code please.