Jump to content

[SOLVED] back button on PHP mail page... help!!!


kcotter

Recommended Posts

when you don't fill out name and email.. it says go back and fill out name and email... but there's not back button... how can I put one in?  I can't figure it out...  here's the code...:

 

I tried putting html in the page.. maybe bad idea...

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

 

<html>

<head>

<title>Untitled</title>

</head>

 

<body bgcolor="bed2ea"><font face=arial>

<?php

 

 

 

if (empty($_REQUEST['name']) || empty($_REQUEST['email']))

{

    print 'Please go back and Enter name and Email...';<html><a href="form.html">Back</a></html>

}

else

{

 

print "Thank you $name for registering to win!";

 

    $name = "Name: ".$_REQUEST['name']."\n"

    ."Email: ".$_REQUEST['email']."\n"

    ."Address: ".$_REQUEST['address']."\n"

    ."City: ".$_REQUEST['city']."\n"

    ."State: ".$_REQUEST['state']."\n"

    ."Zip: ".$_REQUEST['zip']."\n"

    ."How they heard about us: ".$_REQUEST['hear'];

 

    mail("kalcotter1@yahoo.com", "Someone Registered at BuyWithoutDebt", $name, "From: BuyWithoutDebt@register.com\r\nReply-To: noreply@bwd.com\r\n");

}

 

?>

 

</font>

</body>

</html>

 

you can see what I'm talking about here if you want..click on the red star:  http://www.continentalrto.com/buywithoutdebt/

thanks!!!!!!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.