Current location: Hot Scripts Forums » Programming Languages » PHP » need to make a confirmation page


need to make a confirmation page

Reply
  #1 (permalink)  
Old 10-02-03, 04:39 PM
codeguru21 codeguru21 is offline
New Member
 
Join Date: Oct 2003
Location: ny
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
need to make a confirmation page

I have a project for school. The group leader requested I use PHP although I have never used PHP. I have a simple html form page and when the submit button is clicked, a page pops up showing the users confirmation number and spits back the infor. that filled out in the form. I need the source code on how to get that confirmation page using PHP.
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 10-02-03, 05:18 PM
Chroder Chroder is offline
Newbie Coder
 
Join Date: Sep 2003
Location: Toronto, Ontario
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Well you can't make a page "pop-up" with PHP, you'll need Javascript for that.

But to do it with PHP, its really easy. Here's an example:

PHP Code:

<?php


if($_GET['continue'] != 1)
{
    
// form items you wish to exclude from the info list. you can just make this blank if you dont want to exclude anything
    
$exclude = array('submit','hiddenvalue');

    foreach(
$_POST as $key => $val)
    {
        
// if its in the exclude array, skip it
        
if(in_array($val$exclude))
            continue;

        
// print out the info
        
echo $key.": ".$val."<br />\n";
    }

    
?>
    <br /><br />
    <li><a href="<?=$_SERVER['PHP_SELF']?>?continue=1">Yes, this information is correct</a></li>
    <li><a href="javascript:history.go(-1);">No, this information is not correct. (Go back)</a></li>
    <?
}

else
{
    
// do your "its confirmed code"
    // for example, forward the user to a page (uncomment the line):
    // header("Location: http://url.com");
}

?>
__________________
DevBox.net | DevBoxForums.com
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
creating a php registration page codeguru21 Script Requests 3 11-07-03 02:02 PM
Entering text to be displayed in a table on the same page TKOEHN5751 JavaScript 3 09-19-03 02:39 PM
page navigation help grafik ASP 1 07-27-03 03:08 PM
How to make the index.html page for each categories ? vuzzan PHP 2 07-01-03 06:35 AM
preload an asp page Gurrutello ASP 1 06-24-03 09:12 PM


All times are GMT -5. The time now is 06:49 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.