FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Newbie: Displaying a 'message box'
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Newbie: Displaying a 'message box' [message #169792 is a reply to message #169788] Mon, 27 September 2010 00:58 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/26/2010 7:13 PM, Richard Holmes wrote:
> After a user has submitted a form I would like to display a message
> from a PHP function to acknowledge the input if the form is entered
> correctly or an error message if the input is incorrect. I've searched
> Google and the PHP manual but I haven't found an equivalent to a
> 'message box'. Any suggestions? TIA!
>
> Dick

PHP is server side. You cannot open a message box on the client; all
you can do is send html.

The other answers here are the only way you can do it in PHP. You can
bring up a message box in javascript (which is client-side), but then
you need to determine if the data the user input is valid in javascript
- once the page is submitted to the server for PHP to process the
browser has no further access to it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array variable in echo statement
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Oct 21 06:25:09 GMT 2024

Total time taken to generate the page: 0.04407 seconds