RE: Failed MySQL queries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
Rather than using the following, which simply displays a white screen
with
the die message, is there a way to add the die message to the body of
the
original form page, such as in a variable, so that I can display the
message
on the original form page with all the values already filled out, so
that
all the user has to do is resubmit?

	$result = mysql_query($query)
		or die("User Account could not be created.  Please
try again
later.");
[/snip]

Yes.













You could submit the form to itself until all of the conditions are met.
Each time a condition is not met you can output an error message on the
page along with the rest of the form. Don't forget to capture the $_POST
values.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux