Closed Thread Icon

Topic awaiting preservation: Call me button (Page 1 of 1) Pages that link to <a href="" title="Pages that link to Topic awaiting preservation: Call me button (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Call me button <span class="small">(Page 1 of 1)</span>\

Neurotic (0) Inmate
Newly admitted

Insane since: Dec 2004

posted posted 12-01-2004 22:03

Hi Gang,

Look at this piece of code


$content="Persons Name". $name . "E-mail " . $email . "phone ". $phone;
mail ("", "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!!



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.

{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