Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


Results 1 to 8 of 8

Thread: Help with using PHP

  1. #1

    Help with using PHP

    HI. I am trying to make a form using PHP and Dreamweaver to email me the results when it is submitted I've tried several different tutorials but can't seem to get this to work. When the form submit button is pushed it sends me to the PHP page instead of sending to the Thank you page and emailing me the results. Any ideas??

    Thank you,

  2. #2
    PHP Code:
    $email "some@server.com";
    $subject "Blabla";
    $message "Hello world";
    if ( 
    mail($email$subject$message) ) {
    } else {

    AS2 / AS3 / JS / JQUERY / (X)HTML / HTML5 / CSS / CSS3 / PHP

  3. #3
    Thank you. So this is all i need in my PHP? and then change to my email address. so when I hit submit it should go to my thank you page and email me the results??

  4. #4
    jwilliam's Avatar
    An intellectual carrot!
    I googled "php contact form tutorial" and the #1 result was actually on kirupa.com... Check this out:


    If that doesn't get you closer, let us know. Good luck!

  5. #5
    I followed this step by step but it still just goes to the PHP I hit submit?!?!?!?

  6. #6
    Never mind I have figured out what I was doing wrong on this! THANK you for your help!!!!

  7. #7
    Well I had it working with the tutorial but when I use my own form I cannot get it to work correctly. When you have several questions of radio buttons do they all receive the "name=radio" and same with checkbox?

  8. #8
    jwilliam's Avatar
    An intellectual carrot!
    It depends. Each "group" of radio buttons get the same name and different values. Then, when the form is submitted, the value of the radio button that was checked gets put into the hash with a key that is the same as the name. If you can't get it working, post your code with an explanation of what you're expecting it to do and we can probably get it going.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012