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 ;-)
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]