| | |
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
Views: 280 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access address ajax apache api array autoincrement beginner binary broken cakephp checkbox class cms code cron curl database date dehasher directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu method methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure support! syntax system table tutorial update updates upload url validation validator variable video web xml youtube






