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
Reply

Join Date: Oct 2006
Posts: 198
Reputation: MaxMumford is an unknown quantity at this point 
Solved Threads: 1
MaxMumford's Avatar
MaxMumford MaxMumford is offline Offline
Junior Poster

asp form action script

 
0
  #1
Oct 15th, 2006
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:

<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:
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: asp form action script

 
0
  #2
Oct 17th, 2006
what do you want to do with this with this form, first clarify that. u want a faq or work with database or whatever. . .
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 198
Reputation: MaxMumford is an unknown quantity at this point 
Solved Threads: 1
MaxMumford's Avatar
MaxMumford MaxMumford is offline Offline
Junior Poster

Re: asp form action script

 
0
  #3
Oct 17th, 2006
Originally Posted by vishesh View Post
what do you want to do with this with this form, first clarify that. u want a faq or work with database or whatever. . .
just somthing which emails the results to me. Its basically for common questions and if sombody needs any information then they can just put their question into the question section and the form will email me the results to all the form (hopfully )

Thanks,
Max Mumford.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: asp form action script

 
0
  #4
Oct 18th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: asp form action script

 
0
  #5
Oct 18th, 2006
if u want to what the above code mean reply . . .
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 198
Reputation: MaxMumford is an unknown quantity at this point 
Solved Threads: 1
MaxMumford's Avatar
MaxMumford MaxMumford is offline Offline
Junior Poster

Re: asp form action script

 
0
  #6
Oct 21st, 2006
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:

<!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
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: asp form action script

 
0
  #7
Oct 22nd, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 198
Reputation: MaxMumford is an unknown quantity at this point 
Solved Threads: 1
MaxMumford's Avatar
MaxMumford MaxMumford is offline Offline
Junior Poster

Re: asp form action script

 
0
  #8
Oct 22nd, 2006
Originally Posted by vishesh View Post
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.
I have done all that and saved it as a file called form.htm with the code in formcode.asp

(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
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 198
Reputation: MaxMumford is an unknown quantity at this point 
Solved Threads: 1
MaxMumford's Avatar
MaxMumford MaxMumford is offline Offline
Junior Poster

Re: asp form action script

 
0
  #9
Oct 22nd, 2006
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:
  • All Accounts
Summary
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)
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: asp form action script

 
0
  #10
Oct 22nd, 2006
are you talking about ASP. I didn't understand what your last post was about....or what does it mean.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Site Layout and Usability Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC