Get ready for BLACK FRIDAY shopping starting in

Forums

PHP

This topic is locked

repeat region forms

Posted 14 Jun 2009 20:42:55
1
has voted
14 Jun 2009 20:42:55 Chris Trace posted:
Hey there,

i have a page which displays the selected information as a recordID=1

On that page is a repeat region of linked data with an update form

On the update however only the URL recordID is parsed not the selected variable from the repeat region

1. is it even possible to have nested update froms
2. Is it the insert script itself that over writes the select record ID

that is either

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

or

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

can the URL variable be cleared on the update of the record

Any help is appreciated

Thanks

Replies

Replied 20 Jun 2009 01:15:41
20 Jun 2009 01:15:41 Sebastian Sulinski replied:
Hi Chris,

I'm not quite sure I understand fully what you're trying to achieve.
As to the question on clearing the url variable - the easiest way to do it would be by doing the redirect to the other page and there process the code - or simply redirect back to the previous page - clearing all variables.
Replied 25 Jun 2009 15:09:48
25 Jun 2009 15:09:48 Chris Trace replied:
Sebastian,

Thanks for the reply. It seems you cant nest an update from within a DW repeat region well at least that is what everyone says - still think there is probably a way though.

Cheers
Chris

Reply to this topic