homepage Welcome to WebmasterWorld Guest from 54.226.21.57
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
UK_matrix

10+ Year Member



 
Msg#: 380 posted 2:23 pm on Feb 28, 2002 (gmt 0)

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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 380 posted 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

10+ Year Member



 
Msg#: 380 posted 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.

UK_matrix

10+ Year Member



 
Msg#: 380 posted 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