Re: Redirect after submit
| From: | 1LT John W. Holmes | Date: | Mon, 06 May 2002 14:08:35 +0000 |
| Subject: | Re: Redirect after submit | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96253@lists.php.net to get a copy of this message | ||
Where exactly do you see PHP fitting into this. It looks like it's all
Javascript, and that's client-side nonsense...
---John Holmes...
----- Original Message -----
From: "Daniel Negron/KBE" <danegron@kbelectronics.net>
To: <php-general@lists.php.net>
Sent: Monday, May 06, 2002 9:27 AM
Subject: [PHP] Redirect after submit
Hi,
I have a page that contains multi If ElseIf statements. I want to redirect
right after a user submits gets a message (echo "Entry Added to Database.
\n"; ) would you like to add another. then prompts for an alert. Would
you like another ??? and redirects to a page based on selection.
<SCRIPT language="JavaScript">
<!--
function go_there()
{
var where_to= confirm("Would you like to create another ??");
if (where_to== true)
{
window.location="body.htm";
}
else
{
window.location="update.php";
}
}
//-->
</SCRIPT>
I have this jscript but not sure how to implement after the (echo entry
added to database) line ?
any suggestions. would be greately appreciated.
Thank You
<><><><><><><><><><><><><><><><>
Daniel Negrón
Lotus Notes Administrator / Developer
KB Electronics, Inc.
954.346.4900x122
http://www.kbelectronics.com
<><><><><><><><><><><><><><><><>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php