Log in

View Full Version : Is it possible?



toniomorais
08-03-2007, 09:40 AM
Is it possible to make a web page so visitors use a form to fill with data (ex: name, country, email, etc..) without using PHP or other.

Is it possible to make that form in html code with simple scripts?

Thank you!

Twey
08-03-2007, 09:54 AM
They can fill the form in, sure. It's when you want to actually do something with the data that you need a server-side language. :)

djr33
08-03-2007, 10:16 AM
er... simple scripts.... PHP. It isn't that hard.
Javascript won't be able to do anything with it, so, yes, you will need to use PHP, etc.

toniomorais
08-03-2007, 10:48 AM
Thank you all for the answers.

But if it's possible to send the data form by email it's good enough for me.

Basically the visitor fill up the form (Name, email, country, etc..) and when submit the form the data will be send to my email.

Is that possible?

I tryed to learn php but to much errors in code, and the site i have now dont suport php. It's a cheap one...

jc_gmk
08-03-2007, 11:30 AM
Learn PHP http://www.php-mysql-tutorial.com/php-tutorial
and change your hosting company! :)

toniomorais
08-03-2007, 01:21 PM
Thanks for your sugestion but...
I'm trying to run away from php...

I'm looking for a more simple way to receive visitor form data.
I think a form that send's the data by email it's good. Is it possible to do?

Twey
08-03-2007, 01:28 PM
Not really -- you'll need a server-side language to do anything worth mentioning.

You can just about struggle through with action="mailto:your@email.address", but that's not much of an alternative at all.

toniomorais
08-06-2007, 09:17 AM
Twey, that is good for me!
action="mailto:your@email.address"

I'm not expecting to much visitors to fill up the form so I was looking for a simple thing without to much programming.

Receive the form data in my email is great!

Is there any good form scripts in DD? What script do you sugest for using with the code action="mailto:your@email.address"?

Thank you all for your help!

Twey
08-06-2007, 04:23 PM
Scripts? There's no script involved. You just put that as your action and off you go.

Unfortunately, it's ugly and clumsy, requiring the user to have a local mail client installed (which not everyone in this age of webmail does), and sending the data in URL-encoded format for you to decode.

toniomorais
08-07-2007, 07:34 AM
You sound disapointed with this way of doing things...

If you have just 2 or 3 visitors filling up the form by day what sistem do you sugest?
My website server doesn't suport PHP or SQL... I don't Know PHP language...

I don't know what sistem to use.
I thought that maybe in DD was a script that could be simple to colect some data fields in one web form...

I'm very bad programming.....

djr33
08-07-2007, 11:10 AM
You could get away with using a "free form mailer" (google that and follow the directions), but it will probably come with ads and now allow much control. Much better (and easier for the user) than the mailto: method.

chechu
08-07-2007, 02:12 PM
<FORM METHOD="post" ACTION="mailto:you@yourdomain.com" ENCTYPE="text/plain">
<p align=center>name<br>
<INPUT TYPE="text" NAME="Name" style="width:200px;">
<br>
<p align=center>e-mail adress<br>
<INPUT TYPE="text" NAME="E-mail" style="width:200px;">
<br>
<p align=center>message<br>
<TEXTAREA TYPE="text" NAME="message" style="width:400px;height:100px;">
</TEXTAREA>
<br>
<p align=center>
<INPUT TYPE="submit" VALUE="send" style="width:100px;">
<INPUT TYPE="reset" VALUE="delete" style="width:100px;">
</FORM>
This is the cleanest way to do what you ask for, but it really isn't recommendable. Try to get a host that supports php !

toniomorais
08-08-2007, 07:56 AM
Thank you all for all the sugestions and time reading my post.

Thank you djr33. I will se if I find a good "free form mailer" wihout ads in google. I saw lot's of them but with ads. (No free lunch's!)

Thank you chechu for the code. I'm still learning the basics and this it's very helpful to me. I will use it for now and face the problems that exist in this sistem.


For all that have other ideas please share it in DD!

tech_support
08-08-2007, 09:32 AM
Just edit as necessary. I'm going to host the e-mailer script. (Don't worry, no ads here :))

<form name="form" action="http://www.alotofstuffhere.com/scripts/emailer.php" method="post">
<p><label>Name: <input type="text" name="name"></label></p>
<p><label>Address: <input type="text" name="address"></label></p>
<p><label>Phone Number: <input type="text" name="phone"></label></p>
<p><label>E-Mail: <input type="text" name="email"></label></p>
<p><label><input type="submit" name="_Submit" value="Submit"></label></p>
<p>
<label><input type="hidden" name="_email" value="*******************"></label>
<label><input type="hidden" name="_message" value="Thanks for submitting this form."></label>
<label><input type="hidden" name="_footer" value="Regards, Your Company."></label>
<label><input type="hidden" name="_subject" value="Your Company."></label>
<label><input type="hidden" name="_callit" value="Your Company"></label>
<label><input type="hidden" name="_redirect" value="http://www.google.com.au/"></label>
</p>
</form>

Note the _ means a non-parsed (meaning that It won't get sent in the e-mail) line.

Dictionary
_email = From
_message = Beginning of the message
_footer = End of the message
_Submit = The button 'Submit' :p (DO NOT CHANGE THE SUBMIT BUTTON NAME.)
_subject = Subject of the message
_callit = Whatever you want to call yourself (eg. "You have recieved a new message from ..." instead of the e-mail)
_redirect = Where you want to be redirected afterwards. Please include the FULL URL.

toniomorais
08-08-2007, 03:29 PM
Thank you tech_support!

That is more than perfect!

I don't expect to much visitors filling up the form but that way some problems from "mailto" action are resolved.

ruth
08-09-2007, 04:43 PM
Now I was wondering, what if I use a drop down menu in which visitors can choose who the form gets send to?
My server does support PHP, but I don't get any of the database programming.. Just an HTMLRookie here...
the form I try to let work is at:
http://www.houwitser.nl/temp/contactformhouwitser.txt
Cheers,
Ruth

Paul Clarke
01-12-2008, 05:04 PM
See if the sample code works for you. I think you will need an ISP that allows you to run sccripts, etc


sample code below.

You must create a new file called "feedback.htm" and place the following
code into it.

<html>
<head>
<title>Feedback Form Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#009900" vlink="#009900"
alink="#009900" onLoad="">

<form method=POST
action="http://www.hobbyfarmproduce.com/cgi-bin/formmail/formmail.pl">
<input type=hidden name="recipient" value="info@hobbyfarmproduce.com">
<input type=hidden name="subject" value="New Feedback From Form">
<input type=hidden name="return_link_url"
value="http://www.hobbyfarmproduce.com">
<input type=hidden name="return_link_title" value="Back to Main Page">
<input type=hidden name="redirect"
value="http://www.hobbyfarmproduce.com/thanks.htm">

<font face="Georgia, Times New Roman, Times, serif"> <b> </b> </font>
<table width="32%" border="0" cellspacing="5" cellpadding="1" height="56"
bgcolor="#61A8A2" align="center">
<tr>
<td height="2">
<div align="right"><b><font color="#FFFFFF">Name:</font></b>
<input type="text" name="Name">
</div>
</td>
</tr>
<tr>
<td>
<div align="right"><b><font color="#FFFFFF">E-mail:
<input type="text" name="email">
</font> </b></div>
</td>
</tr>
<tr>
<td>
<div align="right"><b><font color="#FFFFFF">Phone Number:
<input type="text" name="Phone">
</font> </b></div>
</td>
</tr>
<tr>
<td>
<div align="right"><b><font color="#FFFFFF">Address:
<input type="text" name="Address">
</font> </b></div>
</td>
</tr>
<tr>
<td>
<div align="right"><b><font color="#FFFFFF">Age (optional):</font>
<input type="text" name="Age" size="10">
</b></div>
</td>
</tr>
<tr>
<td>
<div align="right"><b><font color="#FFFFFF">Your Sector: </font>
<select name="Sector" size="1">
<option>Administration</option>
<option>Aftersales</option>
<option>Parts</option>
<option>Information Technology</option>
<option>Sales</option>
<option>Workshop</option>
<option>Painters</option>
<option>Body Repairs</option>
</select>
</b></div>
</td>
</tr>
<tr>
<td>
<div align="right"><font color="#FFFFFF"><b>Your Current Position:
<input type="text" name="Title">
</b></font></div>
</td>
</tr>
</table>
<p align="center"> <font face="Georgia, Times New Roman, Times, serif">
<input type="submit" name="submit">
<input type="reset" name="reset">
</font></p>
</form>
</font>
</body>
</html>

You can edit and add new form elements.The script above will send your
customer to the "thanks.htm" in your webspace when filled in.

tech_support
01-14-2008, 02:32 AM
Do you realise that this thread is 3 months old?

Paul Clarke
01-14-2008, 08:24 AM
Yes

I have also received useful information from looking up older threads. It saves people wasting time by answering the same qwuestion over & over.

What is your cut off point?

Paul

djr33
01-15-2008, 12:03 AM
The cutoff point is common sense. It's not that you can't bump an old thread, but the odds are that something older than around a month is already either outdated or answered, if the original poster hasn't asked for more help or clarification.

If you have a question about a thread that is 4 years old, that's a case where you could bump it. But if it's already answered, there's no real advantage in bumping it then.

Your question is also purely html, and I'm confused why you refer to some seemingly arbitrary domain.

Please post using [code] blocks.

Paul Clarke
01-15-2008, 12:11 AM
Hi dir33

It would appear that mu posting has caused some offence. Please note that I am a new user here and was not aware I was breaking any rules, written or otherwise.

The sample code I submitted was code that was given to me. If it might help someone out, I don't see the problem.

Apologies if the modorators have taken offence.

Paul Clarke

Twey
01-15-2008, 12:16 AM
No offence, I think, it just probably wasn't particularly helpful. Still, might help the searchers, as you said.

djr33
01-15-2008, 12:18 AM
Paul, this isn't meant to be a reprimand, simply a comment. You're new, and you're learning, so that's just fine. You didn't do anything "wrong"... just... extra. Certainly no hard feelings or anything.