Current location: Hot Scripts Forums » Programming Languages » PHP » Alert or Confirmation box in PHP?


Alert or Confirmation box in PHP?

Reply
  #1 (permalink)  
Old 07-06-03, 02:16 PM
jrcarr jrcarr is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Arkansas
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Alert or Confirmation box in PHP?

Is there something in PHP that is similar to the Alert/confirm boxes in javascript. Or does has anyone seen a script to duplicate this feature? Thanks

Jack
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-06-03, 02:40 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Location: Michigan
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
i believe javascript is the only language that can do this
__________________
Elite Bulletin Board
http://elite-board.us
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-06-03, 03:52 PM
ChristGuy ChristGuy is offline
Operations Support Develo
 
Join Date: Jun 2003
Location: Rivonia, South Africa
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Greetingz...

DarkCarnival is right it's only possible in JavaScript...

A solution would be to mix php and JavaScript...
PHP Code:

<?php

  $aMessage 
"Hello World!";
  echo 
'<SCRIPT LANGUAGE="JavaScript">';
  echo 
'  Alert(' $aMessage ')';
  echo 
'</SCRIPT>';
?>
__________________
Till We Meet Again...
Clifford W. Hansen
Aspivia (Pty) Ltd

"We Have Seen Strange Things Today!" Luke 5:26
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 07-08-03, 04:57 AM
liquid7 liquid7 is offline
New Member
 
Join Date: Jul 2003
Location: KL
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
PHP is a server side script..
so it wont able to do alert/confirmation as javascript could..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 07-08-03, 09:34 PM
The Wolf's Avatar
The Wolf The Wolf is offline
CMS Developer
 
Join Date: Jun 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
add to what liquid7 said:

php can be used to make console programs...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 03:22 AM
PHP Dudes - Hi All stuart New Members & Introductions 4 05-03-04 02:22 PM
Custom PHP Scripts BdSBB Job Offers & Assistance 3 12-07-03 10:49 AM
PHP Triad/Upload form eddyvlad PHP 6 10-07-03 12:17 AM
need to make a confirmation page codeguru21 PHP 1 10-02-03 05:18 PM


All times are GMT -5. The time now is 12:57 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.