>Simple< email form help

Discussion in 'PHP' started by Hecky, Oct 30, 2008.

  1. #1
    Hi,

    I bought some CSS coding, the coders have left the email form as :

    				  <form method="post" action="/">
    					  <fieldset class="contact">
    						  <label for="name">Name</label>
    						  <input type="text" class="text" id="name" />
    						  <label for="email">E-mail Address</label>
    						  <input type="text" class="text" id="email" />
    						  <label for="company">Company Name/Website</label>
    						  <input type="text" class="text" id="company" />
    						  <label for="turnaround">When do you need the logo by?</label>
    						  <input type="text" class="text" id="turnaround" />
    						  <label for="budget">Approximate Budget (&pound;)</label>
    						  <input type="text" class="text" id="budget" />
    						  <label for="desc">Extra Details? 
    							<span>- Not about the logo, but about your order.</span></label>
    						  <textarea id="desc" rows="10" cols="50"></textarea>
    						  <button type="submit" class="submit">Submit</button>
    						</fieldset>
    					</form>
    PHP:
    How can I turn this into a form that works?

    +reps will be given away!

    Thanks!
     
    Hecky, Oct 30, 2008 IP
  2. scubita

    scubita Peon

    Messages:
    5,550
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You miss the http:// at action="/"> But hey i'm no expert :)

    <form method=POST action=hxxp://www.yoursite.com/yourform.php>
     
    scubita, Oct 30, 2008 IP
    Hecky likes this.
  3. Hecky

    Hecky Like a Dungeon Dragon!

    Messages:
    5,656
    Likes Received:
    284
    Best Answers:
    1
    Trophy Points:
    0
    #3
    But how will it know where to email me? Where do I specify the email to send it to?

    Thanks anyway, +rep
     
    Hecky, Oct 30, 2008 IP
  4. [GV]AnarchY

    [GV]AnarchY Well-Known Member

    Messages:
    599
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #4
    in order to make your form active you have to generate a PHP script with the form values. then use the <form method=POST action=hxxp://www.yoursite.com/yourform.php> in the body of the file where you want to be displayed. best advice go to google type PHP Forms :)
     
    [GV]AnarchY, Oct 30, 2008 IP
  5. scubita

    scubita Peon

    Messages:
    5,550
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That's easy: http://www.web4future.com/easiest-form2mail.htm

    In your php file insert the url of your form2mail.php file as i told you above.

    You also need to edit the form2mail file to your email address and some tweaks. If you need a helping hand to customize it for you, let me know.

    Recap:

    Get form to mail
    Edit form2mail to your needs (email)
    edit php file to <form method=POST action=hxxp://www.yoursite.com/form2mail.php>

    Upload and test!

    :)
     
    scubita, Oct 30, 2008 IP
  6. Hecky

    Hecky Like a Dungeon Dragon!

    Messages:
    5,656
    Likes Received:
    284
    Best Answers:
    1
    Trophy Points:
    0
    #6
    Hecky, Oct 30, 2008 IP