3 Replies - 392 Views - Last Post: 25 November 2012 - 02:26 PM

#1 gr0z  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 21-November 12

Email form and options

Posted 24 November 2012 - 12:56 AM

So I'm making a contact form and I want the user to be able to choose an option of who they want to send the email to. I have four options but I'm not sure on how or where to assign the "mailto:..."

Here is my code:
 
<form id="contact">
	Choose:
	<select>
		<option>Ted</option>
		<option>Pete</option>
		<option>Both</option>
		<option>Admin</option>
	</select><br>
    Your name:
    <input type="text" value="John Doe"><br>
    Your e-mail:
    <input type="text" value="j.doe@example.com"><br><br>
    Message:<br>
    <textarea rows="15" cols="80"> </textarea><br>
    <input type="submit" value="Send">
    <input type="reset" value="Clear">
</form>



Is This A Good Question/Topic? 0
  • +

Replies To: Email form and options

#2 IJET  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 93
  • View blog
  • Posts: 121
  • Joined: 14-October 12

Re: Email form and options

Posted 24 November 2012 - 01:23 AM

Well, you're going to have to incorporate a different language to help you pull it off. PHP will be your best bet. I prefer to give answers and explain things here over saying go to Google, but there's millions of easy to implement PHP form scripts out there with play by play instructions.
Was This Post Helpful? 0
  • +
  • -

#3 gr0z  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 21-November 12

Re: Email form and options

Posted 24 November 2012 - 02:26 PM

Ok thanks. I guess a good starting place would be a PHP tutorial right?
Was This Post Helpful? 0
  • +
  • -

#4 Vompaudi  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 43
  • Joined: 23-November 12

Re: Email form and options

Posted 25 November 2012 - 02:26 PM

You may not need PHP, you can make it with hidden input, like this. I use this normally and I personally prefer it, cause it is the simpliest way.

Just put this first in your form.

<FORM ACTION="/cgi-bin/post" METHOD="POST">
<INPUT TYPE="hidden" NAME="EMAIL" VALUE="your_email">

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1