Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Managing Errors

can I simulate an "alert" pop-up



2:23 pm on Feb 28, 2002 (gmt 0)

Inactive Member
Account Expired



I've got a form that I'm validating quite nicely with PHP, but I would like to be able to display any errors within a pop-up box rather than the usual full page.

Is this possible ?

Many thanks.

10:09 am on Mar 1, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 6, 2000
votes: 0

Not directly with PHP, no. You could have your PHP script write the appropriate Javascript into your page though...
4:12 pm on Mar 1, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 8, 2001
votes: 0

Usually you would add a javascript script to your page and validate things at the browser side.

Here's one example from Netscape [developer.netscape.com...]

Or look up "javascript forms validation" or some variation in a search engine.


4:24 pm on Mar 1, 2002 (gmt 0)

Inactive Member
Account Expired


Thanks for taking the time to answer guys.

I'm aware of javascript but I was hoping I not to use it so that it wouldn't discriminate against users who had disabled it or had older browsers.

I suppose I wiil have to use the <noscript> tag and not allow them access to the form.