Need simple html php help
Posted: Fri Oct 11, 2002 11:03 am
I have a small php script that I call when I press my submit button in my form. My problem is that instead of processing my php script, it asks you if you want to save the script file. any ideas why?
this is my php
<?
//This will tell the user that their information was sent.(the user sees this)
//There is currently no error checking but if needed it can be added.
PRINT "<center><FONT SIZE=-1 face=verdana>"; PRINT "Thank you for
requesting online $name";
PRINT "</center><p><center><TABLE border=0 width=500";
PRINT "cellspacing=0 cellpadding=7>"; PRINT "<TR><TD><FONT SIZE=-1
face=verdana>";
PRINT "We will be contacting you shortly.";
PRINT "Thank you for Visiting BLAXIS online!!!";
PRINT "</FONT></TD></TR></TABLE></center>";
//This is the E-mail which is sent to you. Right now the check boxes just say
//On or Off.
mail("nat_mike@hotmail.com", "HARDWARE Requst-Blaxis", "$name has made a request
\nTheir e-mail is $email
\nEthernet Card $ethernet
\nMemory $ram
\nHard Drive $hd
\nVideo Card $video
\nSound Card $sound
\nModem $modem
\nOther things:\n$other ");
?>
I call it in html like this
<FORM METHOD=POST ACTION="hardware.php">
this is my php
<?
//This will tell the user that their information was sent.(the user sees this)
//There is currently no error checking but if needed it can be added.
PRINT "<center><FONT SIZE=-1 face=verdana>"; PRINT "Thank you for
requesting online $name";
PRINT "</center><p><center><TABLE border=0 width=500";
PRINT "cellspacing=0 cellpadding=7>"; PRINT "<TR><TD><FONT SIZE=-1
face=verdana>";
PRINT "We will be contacting you shortly.";
PRINT "Thank you for Visiting BLAXIS online!!!";
PRINT "</FONT></TD></TR></TABLE></center>";
//This is the E-mail which is sent to you. Right now the check boxes just say
//On or Off.
mail("nat_mike@hotmail.com", "HARDWARE Requst-Blaxis", "$name has made a request
\nTheir e-mail is $email
\nEthernet Card $ethernet
\nMemory $ram
\nHard Drive $hd
\nVideo Card $video
\nSound Card $sound
\nModem $modem
\nOther things:\n$other ");
?>
I call it in html like this
<FORM METHOD=POST ACTION="hardware.php">