Um, I dont understand that? "Igor Escobar" <titiolinkin@xxxxxxxxx> wrote in message news:1f5251d50904031228rfab0ec3rf8d9dd248b57efb4@xxxxxxxxxxxxxxxxx > If method POST is there and the information still empty...maybe you should > call to someone like a warlock... :D > > > Regards, > Igor Escoar > Systems Analyst & Interface Designer > > -- > > Personal Blog > ~ blog.igorescobar.com > Online Portifolio > ~ www.igorescobar.com > Twitter > ~ @igorescobar > > > > > > On Fri, Apr 3, 2009 at 4:22 PM, Gary <gwpaul@xxxxxxx> wrote: > >> I recieve an email, it will contain the ip address, it will also contain >> the >> name:, email: , comments: but not the information from the form of the >> name or email or comments. >> >> The database also recieves only the ip address. So I assume those parts >> are >> working, but I cant seem to find why the others are not. >> >> Thanks for your reply. >> >> Gary >> >> ""kyle.smith"" <kyle.smith@xxxxxxxxxxxxxx> wrote in message >> news:D3FE56D174ABF6469079CA1A5C8474A804FA9127@xxxxxxxxxxxxxxxxxxxxxxxxxxx >> Try something like print_r on $_POST to see if it contains *anything*, >> seems like it's empty?! >> >> Also, when you say blank emails I assume you mean they have the template >> you made but the variables are empty and not zero-length emails. >> >> -----Original Message----- >> From: Gary [mailto:gwpaul@xxxxxxx] >> Sent: Friday, April 03, 2009 3:14 PM >> To: php-general@xxxxxxxxxxxxx >> Subject: Re: What is wrong with this code >> >> Its there... >> >> >> "Igor Escobar" <titiolinkin@xxxxxxxxx> wrote in message >> news:1f5251d50904031212o6fcc3e43q5c60b7ae373e9b63@xxxxxxxxxxxxxxxxx >> > You forgot to mention the "method" of the form. >> > >> > <form action="..." method="post"> ... </form> >> > >> > Regards, >> > Igor Escoar >> > Systems Analyst & Interface Designer >> > >> > -- >> > >> > Personal Blog >> > ~ blog.igorescobar.com >> > Online Portifolio >> > ~ www.igorescobar.com >> > Twitter >> > ~ @igorescobar >> > >> > >> > >> > >> > >> > On Fri, Apr 3, 2009 at 4:08 PM, Gary <gwpaul@xxxxxxx> wrote: >> > >> >> This is driving me nuts. I am getting blank emails and the only >> >> information that is being passed to MySQL is the IP address. >> >> >> >> Can someone tell me what is wrong with this? >> >> >> >> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> >> >> <div id="important" style="visibility:hidden;"> >> >> <p>If you can see this, it's an anti-spam measure. Please don't >> >> fill in the address field.</p> >> >> <label for="address">Address</label> >> >> <input type="text" name="address" id="address" /></div> >> >> >> >> <label for="name">Name:</label> >> >> <input name="name" type="text" /><br /> >> >> <label for="email">Email Address:</label> <input name="email" >> >> type="text" /> <br /> <label for="name">Comments:</label> <textarea >> >> name="comments" cols="50" rows=""></textarea> <input name="submit" >> >> type="button" value="submit" /></form> >> >> >> >> <?php >> >> >> >> // Receiving variables >> >> >> >> >> >> $ip= $_SERVER['REMOTE_ADDR']; >> >> $name = $_POST['name']; >> >> $email = $_POST['email']; >> >> $comments = $_POST['comments']; >> >> >> >> //spam filter, do not touch >> >> if ($_POST['address'] != '' ){ >> >> >> >> >> >> die("Changed field"); >> >> >> >> } >> >> >> >> //endo fo spam filter >> >> >> >> $header = "From: $email\n" >> >> . "Reply-To: $email\n"; >> >> $subject = "Response from Assessment Lawyer"; $email_to = >> >> "sanitized"; $message = "name: $name\n" >> >> . "email: $email\n" >> >> . "comments: $comments\n" >> >> ."Visitors IP: $ip\n"; >> >> mail($email_to, $subject, $message, $header); >> >> >> >> >> >> >> >> >> >> $dbc= mysqli_connect(sanitized,sanitized,sanitized,sanitized)// I >> >> have removed the actual information, but it was connecting! >> >> or die('Could not connect to db'); >> >> >> >> $query = "INSERT INTO sanitized VALUES(0,'$name', >> >> '$email','$comments','$ip')"; >> >> >> >> $result = mysqli_query($dbc, $query) >> >> or die('Error querying database.'); >> >> >> >> >> >> >> >> mysqli_close($dbc); >> >> >> >> echo 'Thank you $name for submitting your inquiry!<br />'; echo 'You >> >> have supplied the following information:<br />'; echo 'Name: $name >> >> <br />'; echo 'Email Address: $email <br />'; echo 'Comments: >> >> $comments'; >> >> >> >> ?> >> >> >> >> >> >> >> >> -- >> >> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: >> >> >> http://www.php.net/unsub.php >> >> >> >> >> > >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: >> http://www.php.net/unsub.php >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php