PHP submitting wrong, and not even at all

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Karasu Kami
-


Joined: 22 Sep 2003
Posts: 712
Location: Colorado

PostPosted: Thu Oct 02, 2003 5:57 pm    Post subject: PHP submitting wrong, and not even at all Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Oct 04, 2003 1:18 pm    Post subject: Re: PHP submitting wrong, and not even at all Reply with quote

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 View user's profile Send private message Send e-mail
Karasu Kami
-


Joined: 22 Sep 2003
Posts: 712
Location: Colorado

PostPosted: Sat Oct 04, 2003 7:29 pm    Post subject: hmm Reply with quote

how exactly should i edit them to fit? ...sorry aprelium im new at php ^^;
_________________
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 View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Oct 06, 2003 11:52 pm    Post subject: Re: PHP submitting wrong, and not even at all Reply with quote

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 View user's profile Send private message Send e-mail
Karasu Kami
-


Joined: 22 Sep 2003
Posts: 712
Location: Colorado

PostPosted: Tue Oct 07, 2003 2:57 am    Post subject: thanks Reply with quote

thankies aprelium.
_________________
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 View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Karasu Kami
-


Joined: 22 Sep 2003
Posts: 712
Location: Colorado

PostPosted: Tue Oct 07, 2003 3:15 am    Post subject: hmm Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Oct 08, 2003 11:15 pm    Post subject: Re: hmm Reply with quote

Check the "s. Every opened " must have a corresponding " that closes the string.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group