Click to See Complete Forum and Search --> : Feedback form
TheRuler
01-26-2003, 05:31 AM
Hi all,
I'm using Front page to build up a website it offers u a ready feed back form, I just wanna know is that feedback ready to use or I've got to make something so that it will work ???
" I guess it's not ready :p "
:) Thanx a lot
Ribeyed
01-26-2003, 05:39 AM
yes you need some code to process the form after it is submitted
TheRuler
01-26-2003, 07:39 AM
and do u have any I dea what's that code or where can I get it from and most important where shall I put it ???:confused:
Ribeyed
01-26-2003, 07:53 AM
yes i can give you code to do this, but first you need to first make sure you host can support ASP. Next you need to tell me what you want to to with the information you are requesting from the user, do you want to send it in an email to somehwere? do you want to write it to a database? do you need to store it in a file? Is there any other processing required to the information before you send or write it?
TheRuler
01-26-2003, 12:46 PM
Well that's pretty hard questions :confused: but can't it just be configered from front page ?
If not I want the feed back to be sent to an e-mail (and if possible saved to a file too) and I guess I can do the rest of the stuff....
Thanx a lot for ur help:)
Ribeyed
01-26-2003, 12:51 PM
hi,
so your saying you can or can't use ASP?
TheRuler
01-26-2003, 01:01 PM
Well this might be the silliest question You've ever heard but what's ASP :( ???
Any way I'll use free servers if that can help
Thanx alot for ur patience
Ribeyed
01-26-2003, 01:04 PM
hi,
ASP = Active Server Pages.
This is what is known as a server side language. Before you can use ASP for your website you need to make sure that your host support ASP. There would be no point me giving you any code until you are sure that you can use it for your site.
TheRuler
01-26-2003, 01:23 PM
Ok thanx a lot "Iguess I've learned something:) "
Any way let's uppose it does "If not I'll find my web site a host that supports asp"
Ribeyed
01-26-2003, 01:53 PM
ok something like this would work, providing its is being hosted using windows 2000.
If the site is hosted on a pc using windows XP then the bottom bit of code would need to change. Please forgive me if there is a slight error in this page, i run windows XP corp edition and the code is different therefore i couldn't test it. It is better for me to give you the code for windows 2000 as that is the OS most web servers will use.
Anyway hope this answers your question.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<% val = request.form("submit")%>
<% if val = "" then%>
<form name="form1" method="post" action="page1.asp">
<table width="90%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="21%">Your Name:</td>
<td width="79%"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td>Your Email Address:</td>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td>Email Subject:</td>
<td><input name="subject" type="text" id="subject"></td>
</tr>
<tr>
<td>Message:</td>
<td><textarea name="message" cols="40" rows="10" id="message"></textarea></td>
</tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="yes">
</div></td>
</tr>
</table>
</form>
<%else%>
<%
yourname = request.form("name")
youremail = request.form("email")
subject = request.form("subject")
message = request.form("message")
Set MailObject = Server.CreateObject("CDONTS.NewMail")
Mailobject.From = ""&yourname&""
MailObject.To = "db010a6370@blueyonder.co.uk"
MailObject.Subject = ""&subject&""
MailObject.Body = ""&message&""
MailObject.Send
Set MailObject = Nothing
%>
email will be sent, thank you text can be inserted here, you can also include and errors that occur, if any.
<%end if%>
</body>
</html>
TheRuler
01-26-2003, 04:08 PM
I'm using windows XP :rolleyes: ..... but any way where shall I past this under the <Head> ????
U guys r so friendly here thanx alot
Ribeyed
01-26-2003, 04:17 PM
ok your using XP for developing but your host will be Windows 2000, again something you need to find out
TheRuler
01-26-2003, 04:43 PM
Yeah I gotta learn lots of stuff
But u didn't tell me where to paste it ?? under the head ???
Thanx a lot
Ribeyed
01-26-2003, 05:16 PM
if your read the code you would see that it is all the code for the page head tags included
Hermond
01-27-2003, 03:51 PM
Hello TheRuler,
You actually don't need to use any ASP or CGI code to do this in Front Page. If you are actually using a normal version of Front Page 2000 or 2002 (not the one that comes with Explorer), you can build forms normally. FP has a property window specially for forms where you can tell him what to do with the data, you can add an e-mail and even say in wich file you want it saved. The only thing that you need to have is that your hosting service has the frontpage extensions installed in the server, that's all. Try a company like netfirms that they support this and they are free.
Hope it helps.
TheRuler
01-27-2003, 04:51 PM
Thanx a lot that helped but do 20m.com & 8m.com provide that service
Thanx again :)
Hermond
01-27-2003, 06:37 PM
I checked 20m.com and they don't offer you the frontpage extensions, they don't even offer you a good ftp option. But if you like this place, no problem.
8m.com was disabled.
TheRuler
01-28-2003, 01:57 AM
K thanx a lot < I'll use netfirms " although they have a long name : netfirms/domainname.com " but it's ok
thanx again u helped alot