AW: [PHP-DB] PHP PopUp Window

From: Date: Wed, 24 Jan 2001 19:52:51 +0000
Subject: AW: [PHP-DB] PHP PopUp Window
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6147@lists.php.net to get a copy of this message
This is not exactly a DB-Problem but: > What I'm trying to do is after a user submits a form, > PHP validates the > form and if an error open a JavaScript popup window. > I'm having trouble-getting PHP to either run the JavaScript > or send the > information to the browser so it can execute the JavaScript. Remember that PHP can't execute Javascripts !! it can only produce javascripts like $error = "No Name entered"; echo "<script>alert ('Your error is : $error !! ');</script>"; > Also on another note is it possible to hide the search > portion of a URL that > is sent using: > <? header("Location: /index.php?hideme=yes"); ?> > > I don't like the user seeing the sometimes-long URL that is > sent using this > manner. If you'd needn't the Redirect you could simply POST your formdata instead of GET. Since you stick on that Location:... try using a frameset around ;-)

« previous php.db (#6147) next »