View previous topic :: View next topic |
Author |
Message |
Karasu Kami -
Joined: 22 Sep 2003 Posts: 712 Location: Colorado
|
Posted: Thu Oct 02, 2003 5:57 pm Post subject: PHP submitting wrong, and not even at all |
|
|
Quote: | <body bgcolor="000000">
<?php
echo "<font color=\"white\" font size=\"4\">Hey <font color=\"blue\">$name <font color=\"white\" font size=\"4\">, ";
$_POST["CallSign"];
$_POST["Position"];
$_POST["Host?"];
$_POST["PGP"];
$_POST["Mic"];
$_POST["Aim/MSN Name"];
$_POST["E-mail"];
$filename ="data.html";
$handle= fopen($filename,'a');
$string = "<hr>
<font color=\"blue\" font size=\"4\">
CallSign: <font color=\"red\" font size=\"3\">
$CallSign <br><br> <font color=\"blue\" font size=\"4\">
Position(ex:cqb/sniper/medic): <font color=\"red\" font size=\"3\">
$Position <br><br> <font color=\"blue\" font size=\"4\">
Would You Host?: <font color=\"red\" font size=\"3\">
$Host? <br><br> <font color=\"blue\" font size=\"4\">
Preferred GamePlay(exp:TKOTH): <font color=\"red\" font size=\"3\">
$Host? <br><br> <font color=\"blue\" font size=\"4\">
Do You Have A Mic?: <font color=\"red\" font size=\"3\">
$Mic? <br><br> <font color=\"blue\" font size=\"4\">
Aim/MSN Name?: <font color=\"red\" font size=\"3\">
$Aim/MSN Name <br><br> <font color=\"blue\" font size=\"4\">
E-mail?: <font color=\"red\" font size=\"3\">
$E-mail <br><br> <font color=\"blue\" font size=\"4\"><br><br><br>";
fputs($handle, $string);
fclose($handle);
?> |
Thats the PHP form i have, it isnt submitting anything at all..... and heres the submitted information to prove it
http://12.208.200.159/AA/contact/data.html
first off it isnt suppose to be submitting the four entries (Name, E-mail, Comments, File Link) i dont know whats wrong, can anyone help. Thanks in advance _________________ Thank you all. Aprelium most importantly.
*Some may not be complete*
http://paeon-hosting.com
http://quartermoon.info
http://loc.paeon-hosting.com
http://genjipoetry.paeon-hosting.com |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Oct 04, 2003 1:18 pm Post subject: Re: PHP submitting wrong, and not even at all |
|
|
For example, $CallSign should be changed to $_POST['CallSign']. Of course, you'll have to rewrite the $string="..." statement according to this modification. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
Karasu Kami -
Joined: 22 Sep 2003 Posts: 712 Location: Colorado
|
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Oct 06, 2003 11:52 pm Post subject: Re: PHP submitting wrong, and not even at all |
|
|
Code: | $string = "<hr>
<font color=\"blue\" font size=\"4\">
CallSign: <font color=\"red\" font size=\"3\">
$CallSign <br><br> <font color=\"blue\" font size=\"4\"> ...";
|
should become:
Code: |
$string = "<hr>
<font color=\"blue\" font size=\"4\">
CallSign: <font color=\"red\" font size=\"3\"> " .
$_POST['CallSign'] . "<br><br> <font color=\"blue\" font size=\"4\"> ...";
|
That means, use the . (dot) operator to concatenate strings. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
Karasu Kami -
Joined: 22 Sep 2003 Posts: 712 Location: Colorado
|
|
Back to top |
|
 |
Karasu Kami -
Joined: 22 Sep 2003 Posts: 712 Location: Colorado
|
Posted: Tue Oct 07, 2003 3:15 am Post subject: hmm |
|
|
Errors
Quote: | Parse error: parse error, unexpected ':' in C:\Program Files\Abyss Web Server\htdocs\AA\contact\post.php on line 19 |
i get that, heres line 19
Quote: | Position(ex:cqb/sniper/medic): <font color=\"red\" font size=\"3\"> |
something above is making the text the light green, instead of the dark red. _________________ Thank you all. Aprelium most importantly.
*Some may not be complete*
http://paeon-hosting.com
http://quartermoon.info
http://loc.paeon-hosting.com
http://genjipoetry.paeon-hosting.com |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Oct 08, 2003 11:15 pm Post subject: Re: hmm |
|
|
Check the "s. Every opened " must have a corresponding " that closes the string. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|