International
In the following tutorial we will start with a few html files - which are available for download at http://www.tutvid.com/downloads.html - and we will build an Email Handling PHP script that sends info from your web form to your email! It is pretty easy PHP so enjoy learning and Have fun! I am using Dreamweaver CS3, but you can use pretty much any version of Dreamweaver, just follow closely and try not to make mistakes. Please enjoy and don't forget to check out the site
http://www.tutvid.com
can u post it please?
By samamesLOF [Affiliate User] 1214213395 Reply Spam [+0] Moderate Up Moderate Down RemoveI used my gmail account. But now I'm using a different method which uses a little more security measures, so it works a little better.
By famwkah [Affiliate User] 1214170764 Reply Spam [+0] Moderate Up Moderate Down Removebecause if bots abuse your email then they can use up all your bandwidth (potentially costing you a load of money for extra bandwidth, or your site will be 'down' untill next month) and send you loads of spam.
By samamesLOF [Affiliate User] 1213730681 Reply Spam [+0] Moderate Up Moderate Down Removehow would you add a capcha to stop bots abusing your email?
By samamesLOF [Affiliate User] 1213730453 Reply Spam [+0] Moderate Up Moderate Down RemoveSpeak to your host. This usually happens if your host has been 'blacklisted' due to spam mail coming from their IPaddress.
By samamesLOF [Affiliate User] 1213730370 Reply Spam [+0] Moderate Up Moderate Down RemoveThanks famwkah, It worked!
was really stressed out looking at the web for finding something better then this...and did found some cool things...but i am gonna stick with this one...thanks again
Thank you so much for sharing your wisdom! You have no idea how much you help out with this videos.
By rafaelmartino30 [Affiliate User] 1213630787 Reply Spam [+0] Moderate Up Moderate Down RemoveOk, I found the problem. Seek the video to 8:53. There he shows the variables that he is creating such as $emailField, $nameField, etc. However, when creating the body variable of the email, he uses the first parts of the variables he created such as $email instead of $emailField. Basically, he forgot to add "Field" in the variables he used in the body part of the email. After getting it to work, for some reason I get the email in my spam folder, I don't know why.
By famwkah [Affiliate User] 1213564969 Reply Spam [+0] Moderate Up Moderate Down RemoveWhat's so hard about this......xD
Just follow some tutorials to learn PHP and done.
Thanx again. For all the help.
By muxi2222 [Affiliate User] 1213349127 Reply Spam [+0] Moderate Up Moderate Down RemoveHi having the same problem as roshanpatel95 get field headings but no content this has been an extremely frustrating process. By now Tutvid shoul have made changes!!
By dwainerich [Affiliate User] 1213347648 Reply Spam [+0] Moderate Up Moderate Down Removeokay..i am getting the results...but i dont see anything in the results...like it just says name and address and the rest of the stuff...but nothing about user's info
can someone please help me now...i can send u the code and the html page if u want me to?
this is what i get
Email: $email
Name: $name
Phone Number: $phone
Budget: $budget
Number of Travelers: $travelers
Comments: $comments
Newsletter: $newsletter
EOD; $headers = "From: $email
"; $headers .= "Content-type: text/html
"; $success = mail($webMaster, $emailSubject, $body, $headers); /*Results */ $theResults = <<
can someone please tell me what am i doing wrong
thanks in advance
hey bardss!!!how did you make it work..im not receiving any emails in my inbox :( can you please teach me how you made it working?thanks in advance
By aivern10 [Affiliate User] 1212899212 Reply Spam [+0] Moderate Up Moderate Down Removeor you can go to insert and go to form and click form
By eminemrocks98 [Affiliate User] 1212875270 Reply Spam [+0] Moderate Up Moderate Down RemoveHey tutvid thanks for the tutorial it was great! thanks to you my web form is now operational! your a real life saver!!!!
By bardss [Affiliate User] 1212627820 Reply Spam [+0] Moderate Up Moderate Down Removehi there! i did exactly the same thing but i am not receiving anything on my email....i did another coding in quite a simpler way in which i receive mails but it doesnt show the email of the sender but the email support of my web host...waht could i be doing wrong? can somebody please help me out on this????!!!
By aivern10 [Affiliate User] 1211942694 Reply Spam [+0] Moderate Up Moderate Down Removea small mistake in explanation:
elseif(empty($email)||empty($field2)||empty($field 3)||.....||empty($fieldn))//check to see if any field is empty
{header("Location: error.php");}//if empty redirect to ERROR PAGE.
I am giving here some basic code that you can adapt easily:
if(!isset($_POST['email'))//checks if email is set
{header("Location: form.php");}//if not set redirect back to form
elseif(empty($email)||empty($field2)||empty($field3)||.....||empty($fieldn))//check to see if any field is empty
{header("Location: error.php");}//if empty redirect back to form
else{if(ereg("[
]",email)){header("Location: form.php");}
$mail=mail($to,$subject,$body,$headers);
header("Location: successful.php");}
Did u include javascript behaviour to check whether user has filled all the form fields? That should work as long as the user doesnt turn off javascript.
In case the use does disable javascript, then you will need php for server side validation. This is very simple to achieve. The concept is to check if the $_POST['formfield'] are set or not for all fields. If they are set for all the form fields then it means that user has entered all fields. We can then redirect user accordingly by headers.
Form validation problem. Email still sends even if some fields are empty and after pop-up warning. Will a good soul help us to complete this form?
1. form validation problem
2. UNKNOWN SENDER problem.
This is a great video though and thanks for sharing.
two more things i would like to point out: you dont have to double quote a variable name while echoing it, unless you also want to output some string with it.
and u didnt cover on how to prevent the script from the mail injection vulnerability.
nice tute :) i wish i had seen this before though cuz i actually had to bang my head trying to learn it all by myself. there are lots of ways to do it in the internet and many are incorrect.but i certainly learnt something new, the "EOD" thing. I didnt use it for my script but it seems pretty neat. I just concatenated the strings instead...
By robinmitra1 [Affiliate User] 1211817514 Reply Spam [+0] Moderate Up Moderate Down RemoveThat's right! He's working with variables like $email that have not even been declared previously. The funny thing is... how come this guy tests it and works fine? Is he bullshitting us pretending is working? Well, I'll give him the benefit of the doubt but I'd like someone to explain it to me.
By meloponeconpapas [Affiliate User] 1211649657 Reply Spam [+0] Moderate Up Moderate Down RemoveFor anyone who is receiving the email with blank information - there is an error in the code. Inside the EOD section, change 'Email: $email' to 'Email: $emailField'. Same for the other lines. Once Field has been added it works fine, for me anyway. Great tutorial that just needs a note added, as this could cause people lots of problems.
By fenixtorch [Affiliate User] 1211190448 Reply Spam [+0] Moderate Up Moderate Down RemoveRated 4.50 | 194 Views
Affiliate Submitter: williamliu93
Rated 3.02 | 235 Views
Rated 3.35 | 115 Views
Attacking Web Applications with Broken Aut...hentication
Rated 3.78 | 46 Views
Affiliate Submitter: ooob1
Web Application Firewall - How DotDefender...Works?
Rated 3.34 | 1,012 Views
By gina1979
(CSS) Build a Simple Web Page in Dreamweaver!
Rated 4.28 | 758 Views
Affiliate Submitter: tutvid
*Free* (Web Marketing) Training With TJ Ha...rris
Rated 4.52 | 900 Views
Affiliate Submitter: TJHarris7
Web Text Box and HTML: Photoshop Tutorial!
Rated 4.30 | 618 Views
Affiliate Submitter: tutvid
Website Builder: How to Create A New Web Page
Rated 0.00 | 11 Views
By lichelle
How to Build a Community Web Site Part 9 -...Create User Profile Edit Page
Rated 4.50 | 23 Views
Affiliate Submitter: flashbuilding
How to Build a Community Web Site Part 11...- Profile Edit Page
Rated 4.50 | 55 Views
Affiliate Submitter: flashbuilding
Free Training and Tools for Web 2.0 Free Free
Rated 1.36 | 94 Views
Import Your PSD Layouts into Dreamweaver &...Build a Web Site!
Rated 4.40 | 3,023 Views
Affiliate Submitter: tutvid
Video Web Presenter - Web Video - FAQ
Rated 0.00 | 30 Views
How to Build a Community Web Site Part 4 -...PHP Join Form Creation and Parsing Dreamweaver Tutorial
Rated 4.33 | 99 Views
Affiliate Submitter: flashbuilding
How To Put You Tube Videos On Your Web Page
Rated 3.33 | 4,373 Views
By rancher2003