View Single Post
  #2 (permalink)  
Old 10-02-03, 04: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
Reply With Quote