Need (more) help with PHP form to be sent by email?

Posted by admin | Programming & Design | Wednesday 31 March 2010 9:03 am


Sorry for the very long extra information but I thought I should include everything that is relevant. Ignore missing
tags, I removed them as they took effect in the question layout.

I’m in the process of making a simple website (my first ever website) for IB students with links to various study notes and similar things…

I’ve created a “Submit link” page in which I want a form with several fields that when submitted is sent to my email (see code below).

My problem is I don’t know how to include multiple fields into the body of the email (I wrote my current code based on a tutorial which only showed how to include one field into the email body).

Here is the form code:




Submit a link to IBnoobs.com

Your name:

Your e-mail adress:

Link you wish to submit:

Subject(s) to which the link is relevant

HL

SL

Both
Short descripton of link (optional):


And here is the send mail page code:

$email = $_REQUEST['email'] ;
$message = $_REQUEST['level'] ;

mail( "postmaster@ibnoobs.com", "Reported Link",
$message, "From: $email" );
header( "Location: ./thankyou.html" );
?>

I tried some of peoples suggestions such as:

Replacing send mail code with this:

email = $_POST['email'];
$message = $_POST['name'] . "
” . $_POST['link'] . “
” . $_POST['level'] . “
” . $_POST['description'];

mail( “oscarconiel@ibnoobs.com”, “Reported Link”,
$message, “From: $email” );
header( “Location: ./thankyou.html” );
?>

But I get this error:

Parse error: syntax error, unexpected ‘=’ in /home.42/i/b/n/ibnoobs/www/sendmail.php on line 2

I also tried replacing send mail page with this:

$email = $_REQUEST['email'] ;
$link = $_REQUEST['link'] ;
$subject = $_REQUEST['subject']
$level = $_REQUEST['level'];
$desc = $_REQUEST['description'];

$message = "Subject: ".$subject."\nLink: ".$link."\nLevel: ".$level."\n\n".$desc;

mail( "postmaster@ibnoobs.com", "Reported Link",
$message, "From: $email" );
header( "Location: ./thankyou.html" );
?>

But I get the following error:

Parse error: syntax error, unexpected T_VARIABLE in /home.42/i/b/n/ibnoobs/www/sendmail.php on line 5

Email Limit before marked as Spam?

Posted by admin | Other - Internet | Wednesday 31 March 2010 8:36 am


My Co. will be using a mass emailing program to reach to our candidate. As you know, most people using free email such Yahoo!, Gmail, AOL, and Hotmail.

My mass email software can automatically set when should i pause and for how long.

Does anyone can give me a guideline how many email should i send before pause and for how long?

What is a good email marketing solutions?

Posted by admin | Search Engine Optimization | Tuesday 30 March 2010 8:29 am


I am looking to email 8000 users on a daily basis, emailing them about every 2-3 days by deleting old users and importing new ones. I am looking for a good email marketing solution that would send emails to my users’ inbox and not mark them spam. I am looking for softwares only, or a good and cheap site thanks.

Can anyone help me find a form/email script for a website?

Posted by admin | Programming & Design | Tuesday 30 March 2010 3:37 am


I have looked everywhere and cant find any free form scripts - I want to have something like a questionair on my site and then have it emailed to me when it has been completed but I cant seem to find any. Thanks for any help in this.

how can i add multiple email recipients to php mailer code?

Posted by admin | Other - Computers | Monday 29 March 2010 4:08 am


More specifically, how can i email the contents of my form to
1 - any email address
2 - an email address entered in a field in THAT particular form by the user

any links to a helpful forum would be appreciated too!

What is wrong with my form-to-email script at http://www.lewiscountypublichealth.com/feedback.html ?

Posted by admin | Programming & Design | Saturday 27 March 2010 12:08 am


I’ve configured numerous form-to-email scripts with what at least appeared to be pre-programmed CGI scripts. Gate.com is the hosting company and I utilize the Unix platform. All coding in HTML. Thank you for your help!

let’s send a message to Yahoo right now?

Posted by admin | Religion & Spirituality | Friday 26 March 2010 4:07 pm


anyone who has had questions or answers unfairly deleted we should start a mass emailing campaign to their main email, does anyone know Yahoo’s main contact email?

Do you think this is a Scam?

Posted by admin | Other - Careers & Employment | Friday 26 March 2010 8:11 am


I’m so nervous & desperate for work: I can’t tell if this is a scam. A job fair guy gave me a card, I emailed my resume, and now I’m part of a mass-interview tomorrow. (Seems brainwashy..)

In summary: ‘Dear sir or madam, thank you for calling us/emailing us. We have reserved a seat for you Friday night at 7 at our “storage facility (warehouse) two cities over. Bring resume & hours u can work. The session will last an hour and you cannot enter or leave because the doors are locked. (Agoraphobia comes to mind.)

My main concerns:
-I have no idea what the job is about. Possibly Lawns (?)
-12 hour work days. Yikes.
-Pays $100 (below minimum) upto $500 (way above minimum) a day.
-No paychecks, just under the table.
-There is NO way to call these people. I tried. The email even says “Don’t bother replying”.
-Then again, I need money and a job is a job. .. Even if they pay me half of min. , right?

NOW I know not to give them money because most scams do that. But otherwise does this seem scammy?
They have youTube account:
http://www.youtube.com/watch?v=mFZFzZta9sw

What will happen to email that i have sent to blocked email address?

Posted by admin | Spam & Bulk Mail | Thursday 25 March 2010 11:37 am


I have this person whose email address i have blocked since i didnt want to receive emails from him. I also dont want him to receive any emails from me or my account. My family uses a shared account and would like to block send/receive emails to an email address. I have figured out how to not recieve emails from the person but i have no way to find out how can i block emails to be sent to the same address. Please help

How do i send a email with this form using php?

Posted by admin | Programming & Design | Wednesday 24 March 2010 8:54 pm


this is th form i have


Email:
Subject:
Message:


Allright now i know nothing…… about php but im trying to learn so i really need help with getting a php form working through this html form so if you guys could just make a real simple one for me that would be really cool.

Thanks in advance

Next Page »