Customize Contact Us Page with Drop Down |
Post Reply |
Author | |
lcameron
Groupie Joined: 08-May-2006 Status: Offline Points: 47 |
Post Options
Thanks(0)
Posted: 28-May-2011 at 8:27pm |
I need to add a drop down field to the contact us page, but am not having any luck. The drop down is for users to select why they are contacting us eg. Order not received, Product enquiry, Site feedback etc. Can anyone give me some pointers what I need to add to the code?
I have so far add this line to the languages.asp file dictLanguage.Add "english_Contact_11", "Why are you contacting us?" I have added these lines to the form <td valign="top"><%response.write dictLanguage.Item(Session("language")&"_Contact_11")%></td> <td valign="top"><p> <select name="Subject" id="Subject" value="<%=pcf_FillFormField ("SubjectOptions", pcv_isSubjectRequired) %>"> <option value="order_eta">I have not received my order</option> <option value="order_change">I wish to cancel or change my order</option> <option value="order_return">I wish to return an order</option> <option value="order_wrong">I have received the wrong book</option> <option value="order_damaged">My order arrived damaged</option> <option value="enquiry">Product enquiry</option> <option value="feedback">Site feedback</option> </select> <% pcs_RequiredImageTag "MsgTitle", pcv_isTitleRequired %> </p></td> </tr> I have edited this msg=getUserInput(request.querystring("msg"),0) pcv_isNameRequired=True pcv_isEmailRequired=True pcv_isTitleRequired=True pcv_isBodyRequired=True pcv_isSubjectRequired=True I have edited the sendmail in contact.asp call sendmail (CustName,CustEmail,scFrmEmail,MsgTitle,Subject,MsgBody) and assume I have a few more places I need to add it into. Can anyone help? |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
I can't get into directing you line by line, here in the forum, as to altering a complex page such as contact.asp.
I will guide you, however, in saying that you should not make the change you made to the sendmail parameter list. Do that here, and even if you have made the appropriate matching change in the function itself, you will have broken every other part of the application that sends mail. Better approach is to concatenate the new value into the message body string so that you don't tamper with the format by which you call sendmail. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |