homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Managing Errors
can I simulate an "alert" pop-up

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


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)

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)

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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved