Welcome to WebmasterWorld Guest from 54.196.212.62

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Managing Errors

can I simulate an "alert" pop-up

     

UK_matrix

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

10+ Year Member



Hi,

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.

sugarkane

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

WebmasterWorld Senior Member 10+ Year Member



Not directly with PHP, no. You could have your PHP script write the appropriate Javascript into your page though...

cyril kearney

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

10+ Year Member



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.

UK_matrix

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

10+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month