Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Mail Function not working, please look at code
Old 06-11-2005, 10:29 PM Mail Function not working, please look at code
deezin's Avatar
Junior Talker

Posts: 4
Trades: 0
I haven't programmed in a while and I am having problems with a mail form. here is the code before the form.

PHP Code:
<?php 
if($submit

$feedback.="Artists Helping Children Car Donation Application\n\n"
if(
$first_name) {$feedback.="Name: ".$first_name." . ".$last_name."\n\n";} 
if(
$address) {$feedback.="Address: ".$address."\n\n";} 
if(
$city) {$feedback.="City: ".$city."\n\n";} 
if(
$state) {$feedback.="State: ".$state." . ".$zip."\n\n";} 
if(
$areacode) {$feedback.="Phone: ".$areacode." . ".$phone."\n\n";} 
if(
$alternate_areacode) {$feedback.="Alternate Phone: ".$alternate_areacode." . ".$alternate_phone."\n\n";} 
if(
$email) {$feedback.=$email."\n\n";} 
if(
$location_address) {$feedback.="Location Address: ".$location_address." . ".$location_city." . ".$location_state." . ".$location_zip."\n\n";} 
if(
$vehicle_year) {$feedback.="Vehicle Year: ".$vehicle_year."\n\n";} 
if(
$vehicle_make) {$feedback.="Vehicle Make: ".$vehicle_make."\n\n";} 
if(
$vehicle_model) {$feedback.="Vehicle Model: ".$vehicle_model."\n\n";} 
if(
$vehicle_license) {$feedback.="License Plate: ".$vehicle_license."\n\n";} 
if(
$vehicle_vin) {$feedback.="Vehicle VIN: ".$vehicle_vin."\n\n";} 
if(
$damage_to_body) {$feedback.="Body Damage: ".$damage_to_body."\n\n";} 
if(
$interior_damage) {$feedback.="Damage to Interior: ".$interior_damage."\n\n";} 
if(
$does_vehicle_run) {$feedback.="Is your Vehicle Drivable: ".$does_vehicle_run."\n\n";} 
if(
$title_paperwork) {$feedback.="Do You have Certificate of Title: ".$title_paperwork."\n\n";} 
if(
$r_address) {$feedback.="Special Instructions or Comments: ".$r_address."\n\n";} 
$email_to="allfreelance@comcast.net"
$subject="Artists Helping Children Car Donation Form"
mail($email_to,$subject,$feedback); 
echo 
"<center><h2>Thank you for your interest in donating your car to Artists Helping Children. We will get back to you as soon as possible.</h2><BR>"

else 
{
then it goes on with the form...do you want me to post the form too?

Thanks Rachel

Last edited by Kyrnt; 06-12-2005 at 09:14 AM.. Reason: Surrounded the code with PHP display tags
deezin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-12-2005, 09:13 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
What exactly are the kinds of problems you are seeing? Where is $submit defined given that the email cannot be sent unless $submit is true. You may need to go ahead and post the entire code.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Reply     « Reply to Mail Function not working, please look at code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10077 seconds with 12 queries