| | |
asp form action script
Please support our Site Layout and Usability advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
After hours of looking on the internet and posting in forums and trying 10 different codes for php script, i start looking in my website providers' help database, and in there (and only in there) do they say that they do not support php form action scripts!?!?! Grr!
Can sombody help me get an easy asp form script? Below is the form and the fields:
Thanks guys!!
Max,
ThemePics.co.uk
(form is www.themepics.co.uk/info.htm)
:mrgreen:
Can sombody help me get an easy asp form script? Below is the form and the fields:
<input name="name" type="text" id="name" value="name..">
</p>
<p>
<input name="email" type="text" id="email" value="email address..">
</p>
<p>
<textarea name="question" cols="50" rows="4">question..</textarea>
</p>
<p align="center">
<input type="submit" name="Submit" value="Submit">Thanks guys!!
Max,
ThemePics.co.uk
(form is www.themepics.co.uk/info.htm)
:mrgreen:
•
•
•
•
what do you want to do with this with this form, first clarify that. u want a faq or work with database or whatever. . .
)Thanks,
Max Mumford.
well what you have to do is to create a CDO object. i havn'r checked this code since right now i am not posting this script from my computer so it doesn't have IIS installed if you have any problems reply.
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Question"
myMail.From=Request.QueryString("email")
myMail.To="you@yourdomain.com"
myMail.TextBody=Request.QueryString("question")
myMail.Send
%> Last edited by vishesh; Oct 18th, 2006 at 3:36 am.
Thanks for the code but its not working on my site
i know asp works because i have some code which replies on the next page with what the user put in (here: http://www.themepics.co.uk/convoform1.asp) which is all working ok but the form script isnt working for my feedback form :/ what information do you need to determine why it isnt working? this is the code im using at the moment:
Thanks,
Max
ps also another wierd thing, when i go on my formtest.asp page with the feedback code in it, it displays the form and the asp code above my error page (http://www.themepics.co.uk/error.htm and http://www.themepics.co.uk/formtest.asp)
i know asp works because i have some code which replies on the next page with what the user put in (here: http://www.themepics.co.uk/convoform1.asp) which is all working ok but the form script isnt working for my feedback form :/ what information do you need to determine why it isnt working? this is the code im using at the moment: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>form test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="formtest.asp">
<input name="name" type="text" id="name" value="name..">
<p>
<input name="email" type="text" id="email" value="email address..">
</p>
<p>
<textarea name="question" cols="50" rows="4">question..</textarea>
</p>
<p align="center">
<input type="submit" name="Submit" value="Submit">
</form>
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Question"
myMail.From=Request.QueryString("email")
myMail.To="maxmumford@gmail.com"
myMail.TextBody=Request.QueryString("question")
myMail.Send
%>
</body>
</html>Thanks,
Max
ps also another wierd thing, when i go on my formtest.asp page with the feedback code in it, it displays the form and the asp code above my error page (http://www.themepics.co.uk/error.htm and http://www.themepics.co.uk/formtest.asp)
Last edited by MaxMumford; Oct 21st, 2006 at 9:37 pm. Reason: missed out a bit
try the following steps, since i dont know which files have you made for this forms..
1. make a html page which contains only HTML code, i mean only form, no asp. Set action to formaction.asp or formtest whatever
2. In the action page i.e. ASP write the code I had given to you. See if it works.
if still doesn't works i would try myself on the web.
1. make a html page which contains only HTML code, i mean only form, no asp. Set action to formaction.asp or formtest whatever
2. In the action page i.e. ASP write the code I had given to you. See if it works.
if still doesn't works i would try myself on the web.
•
•
•
•
try the following steps, since i dont know which files have you made for this forms..
1. make a html page which contains only HTML code, i mean only form, no asp. Set action to formaction.asp or formtest whatever
2. In the action page i.e. ASP write the code I had given to you. See if it works.
if still doesn't works i would try myself on the web.
(http://www.themepics.co.uk/formcode.asp)
(http://www.themepics.co.uk/form.htm)
But when i click submit for the form it shows my error page. Is this becaquse dreamweaver has not uploaded it correctly or there is an error with my host fasthosts? (http://www.fasthosts.com)
ps THANKS so much for all the help!!
Max
pps: This might help:
Knowledge Basehttp://xtreme.fasthosts.co.uk/images/corner2.gif PROBLEM: My sendmail script doesn't work under Windows
This article applies to:
The sendmail script can only be used on Linux servers. It does not work on Windows servers. For Windows servers you should use Jmail or CDONTS.
© 2006 All images and content are the property of Fasthosts Internet Limited
.... stupid fasthosts
iv had no trouble until this lol)
Knowledge Basehttp://xtreme.fasthosts.co.uk/images/corner2.gif PROBLEM: My sendmail script doesn't work under Windows
This article applies to:
- All Accounts
The sendmail script can only be used on Linux servers. It does not work on Windows servers. For Windows servers you should use Jmail or CDONTS.
© 2006 All images and content are the property of Fasthosts Internet Limited
.... stupid fasthosts
iv had no trouble until this lol) ![]() |
Other Threads in the Site Layout and Usability Forum
- Previous Thread: Need help with form - Host - Go daddy
- Next Thread: Dreamweaver help
| Thread Tools | Search this Thread |
blogging content customer design development dreamweaver duplicate email evaluation filesharing firefox flash gilbane google html itunes javascript kazaa layout music napster peertopeer photoshop remote remoteserver satellitenavigation satnav server site tables template tips tomtom url wave web website websitedesignreview web_development web_sites






