-
Posts
7 -
Joined
-
Last visited
Never
About mikeumus
- Birthday 05/21/1989
Contact Methods
-
AIM
mikeumus
-
MSN
mikeumus@msn.com
-
Website URL
http://www.l4dt.com/
Profile Information
-
Gender
Male
-
Location
NJ, USA
mikeumus's Achievements
Newbie (1/5)
0
Reputation
-
So I tried to search out my solution in th forums with no luck. This: function bowob_link(){ echo "<li><h2>Chat <img align=\"absmiddle\" src=\"L4DTchatIcon.png\" title=\"L4DT Chat\" alt=\"L4DT Chat\"/></h2>\n"; bowob_link_rooms(); echo "</li>\n"; } Bares me no fruit(image). No images shows. is \" not the right way to do this? :'(
-
and... back on top. This is soo close to being resolved. So what does that error above mean? ???
-
Wow, thanks kenrbnsn. I already learning alot just from this thread. What is the session command? So I inserted your code into formHandler.php and sendPost.php and got this error on my formHandler.php(the second page): _____________________________________________________________ Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/m/i/k/mikeumus/html/l4dt.com/formHandler.php: in /home/content/m/i/k/mikeumus/html/l4dt.com/formHandler.php on line 73 _____________________________________________________________ Is this because of my Google Analytics code? Can I create a separate instance of the session_start function?
-
Thanks awpti, i'll definetly apply that to my code once I get it working. Crayon Violent, No error now, but no info passed again. I really wish you guys could see the big picture, so now you can: Here's waht's important in each file: Post.php: ...<form action="formHandler.php" method="post">... <input onMouseOver="cursor(pointer)" type="reset" value="Reset"> <input type="submit" value="Next"> </form> formHandler.php: <?php $message .= "Tournament Title: {$_POST['title']} <br/>"; $message .= "Host's Name: {$_POST['name']} <br/>"; $message .= "Host's E-Mail: {$_POST['email']} <br>"; $message .= "Host's Tag/Username: {$_POST['tag']} <br/>"; $message .= "Country/Territoy: {$_POST['country']} <br/>"; $message .= "Location: {$_POST['address']} <br/>"; $message .= "Sign-up Cap: {$_POST['cap']} <br/>"; $message .= "Date(s): {$_POST['dates']} <br/>"; $message .= "Prize(s): {$_POST['prize']} <br/>"; $message .= "Rule Set: {$_POST['ruleSet']} <br/>"; $message .= "Custom Rule(s): {$_POST['customRule']} <br/>"; $message .= "Description: {$_POST['detail']} <br/><br/>"; ?> <form method="post" action="sendPost.php"> <input type="button" onClick="history.go(-1)" value="Back"> <input type="submit" value="Submit"> </form> sendPost.php in it's entirety: <?php $email=$_POST['$email']; $title=$_POST['$title']; $name=$_POST['$name']; $tag=$_POST['$tag']; $country=$_POST['$country']; $address=$_POST['$address']; $cap=$_POST['$cap']; $date=$_POST['$dates']; $prize=$_POST['$prize']; $ruleSet=$_POST['$ruleSet']; $customRule=$_POST['$customRule']; $detail=$_POST['$detail']; $message=$_GET['$message']; mail("mikeumus@gmail.com","L4DT Form Submission","$message","From: $email"); header("Location:thankyou.htm"); ?> The info's not getting to sendPost.php, but I know I've had the mail code working at differnt times tonight casue I've gotten emails with content like: array and $title,$name,$tag,$country,$address,$cap,$date,$prize,$ruleSet,$customRule,$detail And I took the 's off $title,$name,$tag,$country,$address,$cap,$date,$prize,$ruleSet,$customRule,$detail tried that, blank emial. I used "s instead, blank email, so the form information isn't getting to sendPost.php > ??? ??? ??? :-\ :-\ :-\ :'( :'( :'(
-
I'm pretty confident I know what's wrong with my code now. There is an initial post.php where user enter in the forms information that form reads: <form action="formHandler.php" method="post"> Then the next page spits the info they entered back at them to double check what they entered: <h3><span title="Left 4 Dead Versus Tournament Submission Form" style="text-decoration:underline">Left 4 Dead Versus Tournament Submission Form</span></h3><br> <br/> <br/>Please take a moment to review your entry, making sure it's correct before submission.<br/><br/> You entered:<br/><br/> Tournament Title: <?php echo($_POST['title'])?> <br/> Host's Name: <? echo($_POST['name'])?> <br/> Host's E-Mail: <?php echo($_POST['email'])?> <br/> Host's Tag/Username:<?php echo($_POST['tag'])?> <br/> Country/Territoy: <?php echo($_POST['country'])?> <br/> Location: <?php echo($_POST['address'])?> <br/> Sign-up Cap: <?php echo($_POST['cap'])?> <br/> Date(s): <?php echo($_POST['date'])?> <br/> Prize(s): <?php echo($_POST['prize'])?> <br/> Rule Set: <?php echo($_POST['ruleSet'])?> <br/> Custom Rule(s): <?php echo($_POST['customRule'])?> <br/> Description: <?php echo($_POST['detail'])?> <br/><br/> <form method="post" action="sendPost.php"> <input type="button" onClick="history.go(-1)" value="Back"> <input type="submit" value="Submit"> </form> Then sendPost.php, the code we've wrongly been discussing because of my ignorance: <?php $email=$_POST['$email']; $title=$_POST['$title']; $name=$_POST['$name']; $tag=$_POST['$tag']; $country=$_POST['$country']; $address=$_POST['$address']; $cap=$_POST['$cap']; $date=$_POST['$date']; $prize=$_POST['$prize']; $ruleSet=$_POST['$ruleSet']; $customRule=$_POST['$customRule']; $detail=$_POST['$detail']; $message=array($title,$name,$tag,$country,$address,$cap,$date,$prize,$ruleSet,$customRule,$detail); $m=implode(" ",$message); mail("mikeumus@gmail.com","L4DT Form Submission","$m","From: $email"); header("Location:thankyou.htm"); ?> So I'm guessing(and guessing correctly, that the form information isn't making it from the second page into sendPost.php, right? So on the second page, I though I could I do this to get the data from the second page to sendPost.php like the million posts on the PHP.net mail - Manual: <?php $message .= "Tournament Title: echo($_POST['title']) <br/>"; $message .= "Host's Name: echo($_POST['name']) <br/>"; $message .= "Host's E-Mail: echo($_POST['email']) <br>"; $message .= "Host's Tag/Username: echo($_POST['tag']) <br/>"; $message .= "Country/Territoy: echo($_POST['country']) <br/>"; $message .= "Location: echo($_POST['address']) <br/>"; $message .= "Sign-up Cap: echo($_POST['cap']) <br/>"; $message .= "Date(s): echo($_POST['dates']) <br/>"; $message .= "Prize(s): echo($_POST['prize']) <br/>"; $message .= "Rule Set: echo($_POST['ruleSet']) <br/>"; $message .= "Custom Rule(s): echo($_POST['customRule']) <br/>"; $message .= "Description: echo($_POST['detail']) <br/><br/>"; ?> But this causes this error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/m/i/k/mikeumus/html/l4dt.com/formHandler.php on line 72 Every single comment on that manual has BS like this: $message .= and for what? What are they using their html mail for? It seems useless is that manual old, i'm freaking out.
-
Thanks for the response Lodius2000, but but if not REQUEST then where am I getting my form information from? I don't see how your getting it in your code example. Plus, how do I add all my forms information into the email?? All this: '$title','$name','$tag','$country','$address','$cap','$date','$prize','$ruleSet','$customRule','$detail' I am receiving an email in my tests but it's blank.
-
I'm really immune to becoming addicted to PHP at the moment as I am at the bottom of the learning curve. There are a million mail() tutorials out there, but the ones I've found are not for form submission I guess because they all expect that $message should definetly be enough, why would you want any more than that!? I've re-arranged my code sooooooooooo much, adding 's and "s everytime I make a change to every var in my array. I had to stop. And now I'm here. Here's the code: :'( <?php $email=$_REQUEST['email']; $title=$_REQUEST['title']; $name=$_REQUEST['name']; $tag=$_REQUEST['tag']; $country=$_REQUEST['country']; $address=$_REQUEST['address']; $cap=$_REQUEST['cap']; $date=$_REQUEST['date']; $prize=$_REQUEST['prize']; $ruleSet=$_REQUEST['ruleSet']; $customRule=$_REQUEST['customRule']; $detail=$_REQUEST['detail']; $message=array('$title','$name','$tag','$country','$address','$cap','$date','$prize','$ruleSet','$customRule','$detail'); $m=implode(" ",$message); mail("mikeumus@gmail.com","L4DT Form Submission","$m","From: $email"); header("Location:thankyou.htm"); ?>