| | |
Need forum's help: urgent please!
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 39
Reputation:
Solved Threads: 1
Dear friends,
Kindly look into this code below for me. I intend to use it to send my form data(not validated) to an email address. After I filled the form and running the code, it is the else echo statement ("Form not properly completed") that i keep recieving. However, I could not locate the problem. Please treat as urgent for me.
See code below:
Thank you.
Kindly look into this code below for me. I intend to use it to send my form data(not validated) to an email address. After I filled the form and running the code, it is the else echo statement ("Form not properly completed") that i keep recieving. However, I could not locate the problem. Please treat as urgent for me.
See code below:
php Syntax (Toggle Plain Text)
<html> <body><?php if (isset($_POST['submit'])) { $to = "quizentry@lagosschoolsonline.net"; $from = "quizentry@lagosschoolsonline.net"; $SchoolName = $_POST['SchoolName'] ; $SchoolAddress = $_POST['SchoolAddress'] ; $Locality = $_POST['Locality'] ; $MobileNumber = $_POST['MobileNumber'] ; $Landphone = $_POST['Landphone'] ; $email = $_POST['email'] ; $website = $_POST['website'] ; $ContactPerson = $_POST['ContactPerson'] ; $MarketerInCharge = $_POST['MarketerInCharge'] ; $Username = $_POST['Username'] ; $Password = $_POST['Password'] ; // SECTION B// $malecandidate = $_POST['malecandidate'] ; $ddm = $_POST['ddm'] ; $mmm = $_POST['mmm'] ; $yym = $_POST['yym'] ; $Refnumberm = $_POST['Refnumberm'] ; //FEMALE// $femalecandidate = $_POST['femalecandidate'] ; $ddf = $_POST['ddf'] ; $mmf = $_POST['mmf'] ; $yyf = $_POST['yyf'] ; $Refnumberf = $_POST['Refnumberf'] ; //email address used// if (mail($to,$SchoolName,$SchoolAddress,$Locality,$MobileNumber,$Landphone,$email,$website,$ContactPerson,$MarketerInCharge,$Username,$Password,$malecandidate,$ddm,$mmm,$yym,$Refnumberm,$femalecandidate,$ddf,$mmf,$yyf,$Refnumberf)); echo "Your entries have been submitted. Thank you." ; } else echo "Form not properly completed"?> </body> </html>
O God! He that teaches man what he knows not, please grant us the solution.
It might not be the error that's causing your problem but remove the semicolon after the second if statement
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
i thought mail only has 4 basic attributes. you have a lot more than that. you need to put all the variables that need to be included in the email into one variable and pass that to the function.
look here for examples: http://us3.php.net/manual/en/function.mail.php
look here for examples: http://us3.php.net/manual/en/function.mail.php
Last edited by kkeith29; Feb 23rd, 2009 at 4:05 pm.
![]() |
Similar Threads
- urgent help in perl script (Perl)
- Urgent:need Help (C++)
- urgent..i need help.. (C++)
- Add/Remove Programs List Gone! (Windows 95 / 98 / Me)
- pls heeeeeeeeelp its urgent. (C)
- Urgent! (C++)
- Urgent Hardware Problem Help!!!! (Troubleshooting Dead Machines)
- Urgent - problem with links (Windows NT / 2000 / XP)
- PLZ help it's urgent! (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: Can someone help me with my login page!!!
- Next Thread: register and email conformation
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner beneath binary broadband broken button cakephp checkbox class cms code compression countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html httppost image include insert integration ip javascript joomla limit link links login mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion remote script search searchbox server session sessions sms smtp source space sql strip_tags survey syntax system table tutorial undefined update upload url validator variable video virus votedown web window.onbeforeunload=closeme; youtube






