| | |
PHP email problem
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2004
Posts: 1
Reputation:
Solved Threads: 0
Hello, Im trying to send an email which will send information from a enquiry form. but everytime i fill in the details and press send this error comes up:
Parse error: parse error, unexpected T_VARIABLE on line 5
have i done this wrong?
<?php
$to = "thomashumphrey@hotmail.com";
$re = "Enquiry Form";
$msg = "Surname: " $surname,
"Firstname: " $first_name,
"Address: " $address,
"Country: " $country,
"Phone: " $phone_home,
"Fax: " $fax,
"E-mail: " $email,
"Hectares: "$hectares,
"Tonnage: "$tonnage,
"Specific model: "$specific;
mail($to,$re,$msg);
?>
Parse error: parse error, unexpected T_VARIABLE on line 5
have i done this wrong?
<?php
$to = "thomashumphrey@hotmail.com";
$re = "Enquiry Form";
$msg = "Surname: " $surname,
"Firstname: " $first_name,
"Address: " $address,
"Country: " $country,
"Phone: " $phone_home,
"Fax: " $fax,
"E-mail: " $email,
"Hectares: "$hectares,
"Tonnage: "$tonnage,
"Specific model: "$specific;
mail($to,$re,$msg);
?>
![]() |
Similar Threads
- Code Snippet: PHP Email Address validation through SMTP (PHP)
- PHP Coding Problem (PHP)
- php email help please (PHP)
- php and mod_rewrite problem (PHP)
- Email problem in php. Plz help me (PHP)
- wierd email problem (Windows NT / 2000 / XP)
- Learning PHP but problem with script (PHP)
- php mysql problem (PHP)
Other Threads in the PHP Forum
- Previous Thread: BASIC FORM problems...
- Next Thread: Can't see mysql records using php in any browser
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





