CP Web Hosting - reseller hosting
>
Server Scripting
>
PHP
how create a msgbox with php ?
User Name
Remember Me?
Password
Register
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
06-29-2007, 12:15 PM
stargate
Senior Member
Join Date: Apr 2007
Posts: 347
how create a msgbox with php ?
Is it possible to create a msgbox with php ???
I want to check the matching of two password fields and display a msgbox with "password not match" !!!
#
2
(
permalink
)
06-29-2007, 12:41 PM
stevon
Senior Member
Join Date: Mar 2007
Posts: 193
Try this in php:
if($pass1 != $pass2){
echo "<script>alert(\"The two password did not match.\");</script>";
}
#
3
(
permalink
)
06-29-2007, 12:45 PM
Axe Solutions
Senior Member
Join Date: Apr 2007
Posts: 311
Yes, you can do it by printing out javascript code. A google search will give you some great examples. javascript
:alert('text here');
#
4
(
permalink
)
06-29-2007, 12:46 PM
tertius
Senior Member
Join Date: May 2007
Posts: 217
If you want to do it within the page you can modify the innerHTML of a div or use a text input field set to readonly which displays the alert.
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
All times are GMT. The time now is
03:31 PM
.
Contact Us
-
cpwebhosting reseller hosting forums
-
Archive
-
Top
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by
vBSEO
3.1.0
LinkBack
LinkBack URL
About LinkBacks