Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

URL parameter missing after update (PHP/CS3)

4 views
Skip to first unread message

wozza

unread,
Sep 4, 2009, 9:42:43 AM9/4/09
to
Hi

I'm trying to pass a UID to a 2nd page after a user updates their
record. I'm using the built-in CS3 server behaviours for update and
entered the corrent page and parameter to pass. However, when the next
page is opened, the id parameter is empty. I've tried echoing same
field on the intial page and it works fine.

The redirection code that's generated by dreamweaver is:

$updateGoTo = "complete.php?id=" . $row_Recordset1['uid'] . "";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));

And the resulting URL is:

complete.php?id=&

Does anyone have any idea what might be going wrong?

Thanks

0 new messages