Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    3
    Member #
    37293

    Newbie Help with PHP!!

    Ive just learnt how to make email forms in Dreamweaver, yet I don't really understand the php file that goes with it, so the information in the form gets sent to an email. Is there any good tutorials online anywhere that anyone knows of that will help me understand it all and get it working????!

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Need a lot more info if you want help. What is it doing/not doing? can you paste in the code?
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    Mark,
    Do you have a website (online with a shared webhost)? Or do you have your own web server software (Apache, PHP)?

    PHP is a server-side scripting language and needs to be executed on a server.


  5. #4
    Junior Member
    Join Date
    Sep 2013
    Posts
    3
    Member #
    37293
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>HTML Form</title>
    </head>

    <body>
    <h1>html Form</h1>
    <form name="contact" method="post" action="contact.php">
    <h2>Send us a message </h2>
    <fieldset>
    <legend>Contact Information</legend>
    <ul>
    <li><label for="name">Given Name</label>
    <input type="text" name="name" id="name"></li>
    <li><label for="second_name">Second Name</label>
    <input type="text" name="second_name" id="second_name"></li>
    <li><label for="email">Email</label>
    <input type="text" name="email" id="email"></li>
    <li><label for="phone">Contact Phone</label>
    <input type="text" name="phone" id="phone"></li>
    <li>
    <label for="method">Prefered method of of contact</label>
    <label>
    <input type="radio" name="method" value="email" id="Preferedmethodofofcontact_0">
    Email</label>

    <label>
    <input type="radio" name="method" value="phone" id="Preferedmethodofofcontact_1">
    Phone</label>
    </li>
    </ul>

    </fieldset>
    <fieldset><legend>How can I help </legend>
    <ul>
    <li><label for="subject">Subject</label>
    <select name="subject" id="subject">
    <option value="error">I noticed a website error</option>
    <option value="question">I have a question</option>
    <option value="other">Other</option>
    </select></li>

    <li><label for="message">message</label>
    <textarea name="message" id="message" cols="45" rows="5"></textarea></li>
    </ul>
    </fieldset>

    <input name="submit" type="submit" value="send">

    </form>

    Ok heres the HTML form I made. In the form action I was told to put "contact.php" that will be the name of my php file that will send the data to my email address, if Im correct. So basicly Im asking.. how do I make this php file?! There is so much to take in on web design, sometimes its hard to get my head around. No I dont have my own website or website server..I did read something about WAMP MAMP?
    Cheers guys for your reply.

  6. #5
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    You'll need some sort of PHP-based server software. What OS are you running?
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  7. #6
    Senior Member Richard S's Avatar
    Join Date
    Jul 2004
    Location
    SW Lonodn
    Posts
    219
    Member #
    6728
    Liked
    3 times
    Okay, so I'm going to assume your on a shared server that has PHP and allows you to send email from your scripts. Most (but not all) shared hosting will let you do this, some require further steps. But we'll cross that bridge when/if we come to it.

    I've written a simple class that extends the famous PHPMailer class and automatically sends the contents of a form to a specified email address. You can also add a "reply to" email address and even a redirect page if the email is sent successfully.

    It also automatically deals with images as well.

    Trying to think of the best way to share it, but for now drop me a PM and I'll email it to you with instructions.

    I made it for a friend of mine who's a graphic designer so it really is dead easy to use.

  8. #7
    Junior Member
    Join Date
    Sep 2013
    Posts
    3
    Member #
    37293
    At the moment.. I've Using Dreamweaver Cs6 on a windows Vista Laptop... in a few weeks time Im buying the new imac.

  9. #8
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    Mark,
    You need a website account with a webhost. When you get that, let us know. Not much you can do without an actual website, online, and active.



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:05 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com