Forums

This topic is locked

Submit Button

Posted 23 Feb 2005 20:22:50
1
has voted
23 Feb 2005 20:22:50 wayne lizotte posted:
Hi, I am confused about the "submit" button and its function. I am trying to add a submit form procedure, when a client fills out a form online, when done he submits it to my client. Now my issue is the email address and where it is located in the submit behavorial, or does it become a seperate script page. Is there an easy way around this?
Thanks, Wayne
Site i am working on by others has this info in the submit page, and I am adding more fields for the doc to include, and want it to go to 3 different geographic location of course with multiple submit buttons for them areas on the same page. Below is the previous text...also I would pay someone to walk thru this with me. Thanks
</table>
<p> </p></td>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><img src="images/Inside_Corner.jpg" width="7" height="7"></td>
</tr>
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr> <!-- InstanceBeginEditable name="body" -->
<td align="left" valign="top"><p> </p>
<p><font color="#669900" size="4" face="Verdana, Arial, Helvetica, sans-serif">Contact
Teknon of <font color="#3399FF">Dallas</font> </font>
<HR noshade style="COLOR: #669900; HEIGHT: 1px;">
<form name="form1" method="post" action="/cgi-bin/formmail">
<input type="hidden" name="recipient" value=" ">
<input type="hidden" name="subject" value="Question or Comment for Dallas">
<input type="hidden" name="redirect" value="www.teknon.com/thankyou.htm">
<input type="hidden" name="email" value=" ">
<table width="450" border="0" cellspacing="0" cellpadding="5">
<tr align="left" valign="top">
<td width="30%" align="right"><font color="#333333" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Name</strong></font></td>
<td width="70%"><input name="Name" type="text" id="Name"></td>
</tr>
<tr align="left" valign="top">
<td align="right"><font color="#333333" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>E-mail
address </strong></font></td>
<td><input name="e_mail_address" type="text" id="e_mail_address"></td>
</tr>
<tr align="left" valign="top">
<td align="right"><font color="#333333" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Comments</strong></font></td>
<td><textarea name="Comments" cols="35" rows="5" id="textarea"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table></form>

<p> </p>
</td>
<!-- InstanceEndEditable --> </tr>
</table></td>
</tr>
</table></td>
</tr>

Replies

Replied 23 Feb 2005 21:13:43
23 Feb 2005 21:13:43 Dave Thomas replied:
having just read your post i can't really tell what it is your asking.

and no payment is required on here.

so, you need to know where an email is specified in the form mail?

here
<pre id=code><font face=courier size=2 id=code><font color=red> &lt;input type="hidden" name="recipient" value=" "&gt;</font id=red></font id=code></pre id=code>

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>and want it to go to 3 different geographic location of course with multiple submit buttons for them areas on the same page. <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

please explain what you mean here. you want to send it to 3 people? why multiple submit buttons? or do you mean your going to have the form on different pages?

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 23 Feb 2005 21:22:30
23 Feb 2005 21:22:30 wayne lizotte replied:
OHHHHHH So the email in html is actually not hidden, ahhh, and it is composed in the page html. Actually what I meant was there are 4 offices and each one will have a submittal button for the form to be sent to the corresponding office from the client in that area. Since there is the name u listed in email, that one is going to dallas office, ahhh. Do I need to make individual pages, or can I have for seperate submit buttons linked to correct office?
I really appreciate this!!
Replied 23 Feb 2005 21:28:58
23 Feb 2005 21:28:58 wayne lizotte replied:
aLSO THE FORMS IM SENDING ARE CUSTOMER WORK REQUEST FORMS WITH SEVERAL FIELDS, AND WHEN FILLED OUT, IT IS EMAILED TO CLIENT IN FORM FIELDS AS THEY POSTED. tHANKS AGAIN, HOPE I AM FEEDING RIGHT INFO. tHANKS ALOT, WAYNE
Replied 24 Feb 2005 03:12:51
24 Feb 2005 03:12:51 Dave Thomas replied:
heres some useful info for you

www2.haverford.edu/acc/webdev/forms/creating_forms.html

As for your questions, well you could have seperate scripts for each office and call them off the seperate submit buttons, but there may be an even easier way by using javascript (not my sector im afraid), but something along the lines of:

create a list drop down in your form containing the 4 emails of the offices.
and use javascript to grab the ElementID in the 'recipient' field.

sounds feasible enough :s

regards

Dave Thomas
<b>DMX Zone Manager</b>

Reply to this topic