Closed Thread Icon

Topic awaiting preservation: Call me button Pages that link to <a href="https://ozoneasylum.com/backlink?for=24262" title="Pages that link to Topic awaiting preservation: Call me button" rel="nofollow" >Topic awaiting preservation: Call me button\

 
Author Thread
sapmi
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Dec 2004

posted posted 12-01-2004 22:03

Hi Gang,

Look at this piece of code


if(isset($_POST['submit']))
{

$name=$_POST['name'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$content="Persons Name". $name . "E-mail " . $email . "phone ". $phone;
mail ("markisaac@tiscali.co.uk", "new contact", "$content");
echo "$content";
echo "We will get back to you";
}

Firstly my submit button is a flash object that links to "javascript:document.form1.submit()".

Whenever I hit 'submit', I get no e-mail, and no echos. If I take away the "if" statement, it e-mails me like crazy (they're all blank of course".

How can I make my submit button work!!

Cheers

Mark

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 12-01-2004 22:40

Quite simple actually...
this: if(isset($_POST['submit']))
looks for an element named submit that is passed from the form in the html page.
If you don't have that, you will never enter that if() clause.
Either change it to a normal submit button or test on something else.
/Dan

{cell 260} {Blog}
-{ ?Computer games don?t affect kids; I mean if Pac-Man affected us as kids, we?d all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music.? (Kristian Wilson, Nintendo, Inc, 1989.) }-

« BackwardsOnwards »

Show Forum Drop Down Menu