Added: 4 years ago
From: tutvid
Views: 293,580
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (1,029)

Sign In or Sign Up now to post a comment!
  • I get an error on line 10 please help!

  • I have being looking for a workable code for this in a long time. Thank you for everything. You do not know how you've made mey day.

  • @ironicaldiction First of all current day programmers are all calling much more complicated functions to achieve what they wish. I personally think if you are just starting to learn and need to get something done using a Website builder to accomplish that goal shouldn't be looked down upon. A web builder is in fact only a GUI which helps you, a more advanced "Dreamweaver" or code editor if you will.

  • I am getting a "Server Error 405" after clicking on the send button and don't know why? Maybe you can give me some insight on what might be going wrong.

    Thanks!

    BTW great tutorial!

  • @RNA1990SMU same here, help!

  • Comment removed

  • "hopefully it's your email address, not mine" loool

  • Cool!!! You are a good professor. On the tutorial I noticed that the word newsletter was wrote wrong but unfortunately could not tell you ;).

  • You are the best. Your tutorial work perfect. Excelent teacher.

  • WebPaper.co allows you to create submission forms instantly with no programming. In fact there are more things you can do with WebPaper's submission form then you could do from this tutorial...#justsaying

  • Comment removed

  • vry gud & hlpful tutorial

  • been looking for ages fi dis

    blesssssssssssssssssssssssssss­ssssss

  • Good tutorial.

  • This plus contemploelvacio's comment = perfect!

  • I went to your website and I couldn't find the file to download, there is not even a tab that says "download".

  • his website>resources>project files>php form handler files

  • @thebirdistheword3 thanks mate.

  • @solhmar this video was uploaded in 2008, he's updated his site since then.

  • @RocketTheory And his comment was written by 2 years ago

  • @solhmar its under resources...

  • kota kabach

  • I.love.you

  • Hi, this is a GREAT tutorial, i did everything right, but when i click a button to send the email, it asks if i want to download or open the php! Any ideas on how to fix this? Did I do something wrong? Oh, btw, it might help to say i was in test mode when doing this. (i havent uploaded it but i was debugging it)

  • @FKATleader450 you need to download a WAMP server(if your on windows) / MAMP server(if your on Mac OS) to process the php script or upload it to a server online. PHP script is only run server side so that's why it's telling you to download it instead of processing it.

  • Im using CS5.5 and i cant find that thing with "Put files" Any1 can help? on 22:05-22:20

  • How do u redirect to a new page after feeling the form?

  • awesome! thanks!

  • Hello, this tutorial is amazing thank you very much. I had a problem because all was working but the email sent from the server had blanks in the fields. What I did was change the variables on "Gathering Data Variables": I wrote $email instead of $emailField, $name instead of $nameField and so on. Now it is sending the complete information. Thanks again;

  • HELP..... when i get a email from someone... where the name of the person is meant to come up.. it comes up "unknown sender"... anyone no how to fix this...

  • btw you have some mistakes.

    at 12:40 you have to write $emailField instead of $email and so on...

    same at 16:10

  • It works PERFECT!!

    tnx a lot

  • I searched for a good PHP script tutorial. Finally I got this. Very good explanation and very clear. Thanks a million. I'll try it out later. I am sure it will work OK.

  • I followed everything, but it did not send an email, rather my "body" was at the top of the "theResults". I don't know why it is not sending the email. I looked over it over and over again, and I cant see what's wrong.

  • can you use 3 variable mail

  • It would be easier to listen to your video if you stop smacking your lips

  • I followed your tutorial but when I click submit I get this:

    mail(): SMTP server response: 550 5.7.1 Unable to relay for myemail @ hotmail co uk

  • Hi there I have followed your tutorial to the letter but unfortunately I was wondering I fill in the details and then submit the form and I get a e-mail but it just has the fields but no data. Something like e-mail: phone: name: but no actual user inputted data. Just wondering if you can help I have run through the tutorial 3 or 4 times but something is still wrong. If you could help taht would be most appreciated. Thanks heaps

  • Comment removed

  • Great Vid!

  • when i press send email i get this error:

    Warning: mail() [function.mail]: SMTP server response: 551 User not local. We don't relay in C:\xampp\htdocs\contactformpro­cess.php on line 29

    Thank you for your interest! Your email will be answered very soon!

    Plz help..or guide!!!!!!

  • @sinpet911

    Maybe upload your .php to your actual server and it should work.

  • hi can you help me i want to make a script that can use php and mysql and give reward points for visiting my site and allow them to spend on gifts for friends they meet on my site? (all points will not be about real currency but bit of fun)

  • Nice tutorial! but I have a question, what if there should be 2 email receivers.

  • @mizukage330

    maybe you can just make an automatic forward from your email account.

  • Worked for me when removing "field"

  • hey i have a problem.. that when i reserve the email... it comes up as "unknown sender"... HELP PLEASE..

  • I can't get it to work; I have checked for typos and mistakes and all that stuff and I'm pretty sure it's all okay - is it because I'm testing the pages from my own computer rather than an online test server? It seems unlikely to me that that is the problem but I can't think of anything else it could be at this point... thanks!

  • I don't need to download the webform - I just made it step by step whilst listening to the video where you made it :D Thanks - very useful!

  • @matafuko ...ah. Okay, that'll teach me for being a smartass!

  • I have everything just about exact and nothing works... Not even rendering the success html, no email, no return alerts saying failed message nothing... I am on hostgator and have e107 installed. any help?

  • Please Help... BTW excellent tutorial... I have used this to produce my request form for my business. I finally finished it all up and now I am receiving an error

    Warning: mail() [function.mail]: SMTP server response: 554 The message was rejected because it contains prohibited virus or spam content in D:\Hosting\6545994\html\Refill­s\refillsubmit.php on line 41.

    Line 41 reads:

    $success = mail($webMaster, $emailSubject, $body, $headers);

    does anyone know how to fix this? or what it is

  • Great tutorial, very clear, however your code has a flaw as mentioned you must remove the "Field" after variable names. But thanks all the same. I plan to check out more of your videos.

  • My script isn't working, I have re typed it 3 different times can i send someone my code so you can look at it. This is my first webpage so i'm looking to learn

  • Hi Great Tut. easy to follow but managed to do something wrong. The email comes through but with no content also, just - Title:, Given Names:, Surame: etc. Everything looks fine i've checked soo many times, what could be wrong? any tips? I've been working on this thing for weeks now, Over it! need HELP!. BTW I'm new to this...really need advice . I can send you my code if that helps

  • @2marllie remove "Field" from variables, that will fix it

  • Hi Great video thanks it really helped and i got it all to work, But recently it hasn't been working. I have checked and checked, It sends some but not all for e.g.

    Name :

    email :

    There is no content, could it be because i have down graded my server.

    Can you please help

  • @lennypalmer if it was working and you have down graded your server, does your server have php enabled?

  • hey guys pls i get this response: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\kenpak\contact­formprocess.php on line 26.. PLS I NEED HELP

  • @sexy20caleb in sted of having mail put mailto that should work 100% if it doesnt please let me know

    

  • Comment removed

  • wow great i just tested again its works thanks alot buddy

  • Comment removed

  • there is no mail send...it just pops up the window to download the PHp file

  • @MarcinEurope send me ur script and ill help you out

  • hmy question: if xou click send mail there opens a window and you can download the php contactformprocess..plz help

  • hi

    

  • need your help emergency ... i did everything in this video exactly, and when i hit submit, i get an email sent to me, but all the values are empty,,, any clue as to why??

  • @scottmulhern19 i as the same

  • Great video! I am getting a blank page after hitting submit...and no e-mail at all....thoughts?

  • I'm having a problem with the email coming in with no information. This is what I get in my email:

    (I changed the form a little because I did not need everything in your example.)

    This is what I get:

    Email:

    ; Name:

    ; Phone:

    Comment:

    ;

    Don't know where I'm going wrong.

    Any suggestions?

  • @angelcatPretty i has the same problem.. help plz.

  • Hi... I have the same problem.. Did you find a solution your problem.. would really appreciate the help.

  • @jackmacken1 whats ur problem?

  • Jy is 'n doring! Dankie meneer! I had some problems but it's all sorted.... YOU ARE AWESOME MAN!!!!!

  • Do I have to place the processphp file in the root directory or can i keep it inside a "contact" folder along with this html files?

  • doesnt work for cs5

  • it says Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for myemail . . .. . .how can i fix this ? please help

  • it says Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for my email in \\121212.12121.120.1 . .. . . . . contactformprocess.php on line 31

  • i'm getting an error message when i submit

    Parse error: syntax error, unexpected '*', expecting ']' in "blah blah blah" on line 10

  • Yes, great. Worked for me too when removing the word "Field." Tutvid- you're great. thank you!!

  • Guys, it's CASE SENSITIVE! Your ID's are case sensitive as well. Go through all your ID's if your having trouble, and make sure they match the script. I ran into this problem once, and it took me about a week to figure out that my solution was so stupidly simple.

  • it says post is not allowed on host?

  • Thanx Bro you're The Man!

  • can u send me the complete coding...?

  • Just did it with CS3 Everything went great, but I am not recieving e-mails??

  • Great Video! How would you set this up to send to other email addresses bases on the radio button choices?

  • @Johnnywoods10 Figured it out:

    /* subject and email variables */ $emailSubject = 'Purchase Request'; switch($_POST["type"]){ $EmailTo = 'name@example.com'; case "CD": $EmailTo = 'name@example.com'; case "DVD":

    $success = mail($EmailTo, $emailSubject, $body ,$headers);

  • PLEASE HELP ME... IT ALL WORKS But each registeration keeps going to JUNK MAIL?? How can i STOP THIS?

  • i have the code adapted to my form, but when i submit the form i get the variables list on echo instead of the $results (my variable) message. Anyone?! Really going mad with this. I tested it online on my website. Hope someone can help me.

  • @CamaleaoCatatonico

    same thing with me, let me know once ypu get it solved. thanks

  • Still the same here. If i get a solution i'll let you know. Man i bet it's a really stupid thing :)

  • awesome tutorial

  • got this working in one of my servers, but on the other one, it just sends empty form without the answers.. any ideas whats wrong with it?

  • @larbba I'm guessing that you need to capitalize the $_POST command....if this doesn't work, let me know.

  • Comment removed

  • I did everything correctly, but I am not receiving any e-mails. Everything goes through, no errors, I made sure everything was spelled/formatted correctly too.

  • Great tutorial.

    Anyone know why the Break and Horizontal Rule html codes are showing up in the emails that I receive through the form?

  • Hi,

    I need Help !!!! I did every thing, also I did a test sending a email from the form, but how can I avoid the spam message in my email address??????

    Thanks !!!

  • hi i have one question, can i test it before i have upload the homepage to a webhost ? i have try that but when i press on the send button i come to a new page there i can se all the code i have write :S what have i don wrong ? plz pm my :)

  • thanks mate :)

  • YOU ARE TOO AWESOME. THANKS!

  • thanks for the tutorial tutvid! ..

    i tried this tutorial and i got this error

    mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

    any help pls?

  • @xiiopao I had a similar error and found I was missing semi-colons at the end of the Gathering Data Variables section. Hope you figure it out!

  • Great video!! worked smoothly! thank you

  • can anyone help me with this - 'Fatal error: Call to undefined function: array() in \\192.168.0.16\webfiles\files\­2011-4\3607713\contactformproc­cess.php on line 10'?? please reply

  • @b0bbyboy1980 I had a similar error and found I was missing semi-colons at the end of the Gathering Data Variables section. Good luck!

  • hey does someone know why on line 18 there's a syntax error that appears on cs5 .I had the same code and i made alot of adjustment to that part and still dont work.If anybody passed through this please help me out ill appreciate it. Thanks

  • @sadikoification I just did it with cs5 and it worked smoothly.

  • Wow! I think my brain just exploded there! LOL

  • Hi Everyone!

    Maybe u can help me in this case:

    I have an HTML PAGE with TEXTAREA, DROP-DOWN-LIST and SUBMIT BUTTON

    and lets say User typed "TEXT" in the TEXTAREA and CATEGORIZED it with the DROP-DOWN-LIST OPTION called "OPTION1". After he hit the SUBMIT Button, I would like that his "TEXT" is saved in the

    MYSQL TABLE under FIELD "OPTION1".

    Whats the PHP Code for that?

    Thank you in advance!

  • i received an email but it wasn't HTML, i received the details but the HTML wasn't rendered and all the tags were showing in the mail, also the return address was not there

  • I FOUND A DREAMWEAVER CS5 CRACK (YOU CAN GET IT 4 FREE)!!!! I LOVE IT

  • What does EOD mean?

  • Thanks a LOT for all your tutorials Tutvid! I've never build a website before and also didn't know how to do it. But because of your videos i managed to build one, awesome!

  • need to create a form goto sharepointformwebpart use promo code WDS15 get 15% off

  • I have copied it completly and removed the word 'Field' and it is STILL not sending the email!!!! Please someone reply to this comment and tell me whats wrong!!! Thankyou. If you do i will subscribe!

  • mine just.. doesn't send :( no errors in the code. it redirects me with the correct message.. and i looked over but i still can't find the reason why it isn't sending me an email when i submit info from the form

  • @WeAreMightyDucks FOUND THE PROBLEM XD!! it was going into my junk folder ;p

  • @WeAreMightyDucks

    man same here, my correct is definitely correct... i get the thank you for your interest page after clicking submit and nothin in my inbox neither spam/junk mail.

  • for those of you who are PHP testing on your local drive, you 1st need to go to manage your site & go to testing your server & configure it to Server Model: PHP MySQL then Access: Local\Network & double check the folder below it needs to be in

    also if you want to test locally, PHP needs a server, so you would need to install the APACHE server to test out your PHP code on your local drive since we are unable to test anything remotely (which is what i am doing in the meantime)..

  • @RKMultiMedia87

    from my experience, those are the things im aware of and just remembered how to test your PHP locally.... just google xaamp.html and it should take you to a link for both mac and windows users of how to install PHP n the apache server on your computer.... just throwing my little 2 cents. hopefully that helps.. im still testing things out.. good luck guys!

  • @RKMultiMedia87

    PS: i am not using xaamp anymore, it was a headache setting up a server locally -- talk about leaving that for the computer scientists and developers loool... i did not want to keep wasting time so i signed up for a free hosting site to test my scripts and make my website live. msg me if ur interested, i don't want to spam & advertise anything here.

  • I removed "Field" as suggested but my email results were still blank. After mulling over it for hours, it turns out I had POST in lowercase...

  • its not possible to test without putting the files to the server is it?

  • @p20barbie

    yea im wondering also, i doubled checked to make sure my codes are correct just the way the great nate showed us!!, but not sure if works on local drive as i changed my testing server to my local host and PHP,

    when i click send email.. it takes me straight to the PHP file i've created ina new tab on my browser.. any clue guys?

  • I get the email just not the information i typed in... Help anyone?

  • @Sharu365 I'm having a similar problem but if you go back in the comments, you'll see there's something wrong in the demo, something along the lines of adding/subtracting the word "Field" but I haven't gotten it to work yet

  • Awesome! Thanks so much!

  • Wish I had read the comments....... works a treat but you need to change the variables in the email body from $email to $emailField they should be the same as the gathering data variables ie: $emailField = &_POST['email'];

    However I'm no webdesigner and I wanted to do a form for a friends business website and this worked, best way of doing it but it took a couple of days.......

    remember to create a form first then add a table inside the form box when designing the webpage :O)

  • Hey man!

    Great tutorial!

    Tho I got a problem. When I click on the submit button it downloads the PHP file.

    Very weird,

    Could you please help me?

  • thanxxxxxxx

  • Thanks a lot for the great tutorial//

    manchestermod > yeah dude, i've changed it and it worked for me too -

    the word Field should be removed..

    however the email being send doesn't render a valid "from" address // and my email puts it into a spam box..

    i've tried to add this // 'From: '.$emailadd.'' inside the mail() however it doesn't worked

    $success = mail($webMaster, $emailSubject, $body, $headers, 'From: '.$emailadd.'');

    any ideas ?

  • What about the var $succes.. must it be called?

  • Can any1 help ....... .when i click submit to test it ., .... it brings up to Download the Php Script HELP!!!!>>>>>>

  • Can someone please just tell me why the fields are blank when I get the email. PLEASE. I already tried changing the $emailField = $_POST['email']; to this... $email = $_POST['email']; it still doesn't work. PLEASE SOMEONE TELL ME

  • @thissitesuxmytwat01

    I am having the same problem... let me know if you figure it out

  • @thissitesuxmytwat01

    i had the same problem and this is what fixed it for me...

    I followed you same instructions...

    $emailField = $_POST['email'] to

    $email = $_POST['email']

    however it still didn't work BECAUSE my actual id was

    "Email" not "email"

    Make sure all your ids are in the exact same format as in your form.

    hope that helps

  • You did a wonderful job on this video. your ground up lesson providing context, detail and fundamental purpose it AMAZING! thanks a million.

    Dave Albright

    sacramento internet marketing consultant and strategist

    916-224-4500

  • Thanks a lot!!! Ive been searching for this for a very long time!

    If my site is done, you will get my free newsletter (:

  • Thanks, a lot great tutorial

  • When I click my sumit button nothing happens

  • Great tutoral man i really learnt alot. Most of what I kno is from watchin your videos. Anyway I tried this out and when I click submit all I see is a text version of my php script...I dont understand why but can you help me?

  • Comment removed

  • THANKS Nate..., you healed the heart of one frustrated Webmaster...

    (semicolon dash close parenthesis... ;-)

  • thank you!!! You saved my brain from exploding

  • $success = mail($webMaster, $emailSubject, $body, $headers); is this the ryt code?couz the error is this in line 31..

  • This tutorial is amazing! I haven't been able to find anything else on the web that actually works or that I could understand enough to complete. This is an excellent step-by-step, even for someone like me who has minimal coding experience. Thank you so much for posting this video!

  • Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\website.php on line 31

  • ((Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\website.php on line 31))can some one help me what is this????and how can i fix this??

  • what is the test server of this project???and what is the configuration of SITE manager???please reply......

  • @shabuna

    this will only work if the website is online or you can set up a testing server which is basically setting up your computer as a server, you can get free domain names and hosting for free to test the form, i find that easier than setting your computer up as a server

  • Absolutely the best training video on Youtube. By the way, you need to remove the word "field" in your variables or it won't work. IE. $emailField should read $email.

    Other than that, this is by far the cleanest code and best script out there. thanks alot :-)

  • @CaveTECHDiver Thank you so much for this added tip...I was getting blank results on some servers I was using. The "Field" only seems to work with 1&1 hosting servers.

  • Can someone paste the code on here so it can be handier to do.!

  • Comment removed

  • What does it mean: Forbidden

    You don't have permission to access /global-bin/php.cgi/formfill.p­hp on this server.

    When submit is clicked?

  • it didnt work for me at first, then i deleted the word "field" in the gathering data variables

    eg. from this... $emailField = $_POST['email']; to this... $email = $_POST['email'];

    on each line and it worked

    Great vid, thanks tut vid

  • @manchestermod thank you very much i was stuck for a while but this worked for me

  • @manchestermod Thanks!!! the code in the video didn't work for me either and I just couldn't figure out why. After days of searching and trying you've just provided me with the answer. Next step: validation.

  • @meikke88

    no problem meikke88 , im looking in to validation as well and also having a required field for each one. good look