This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2004 > Re: e mail forms





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: e mail forms
Alan Ames

2004-02-29, 1:28 pm

there isn't an "html script" to process a form.

What serverside scripting can you use on your hosting?
Check your hosting's FAQ or Support pages, or "Control Panel"

Also- look in those places to see if your host has already installed a
generic form-->email script for you to use.

If they haven't, reply here with what flavor you can use.
ASP, or PHP or cf or cgi/Perl or ??

> i am having trouble getting e mail forms to work ...
> has anyone got a html script i can use in my site just a simple one will do me
> fine


markosillypig

2004-02-29, 2:28 pm

i want this script to send e mail direct to me how comes it does not work and
wants to send it via outlook express

thanks
mark

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body>
<form action="mailto:markosillypig@aol.com" method="post" name="form1"
target="_blank">
<p>
<input type="text" name="textfield">
text here
</p>
<p>
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option>list
</select>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</p>
</form>
</body>
</html>


Alan Ames

2004-02-29, 3:28 pm



> <form action="mailto:markosillypig@aol.com" method="post" name="form1"
> target="_blank">


It doesn't work For You.
It might work for some people.

The form's ACTION attribute is a mailto:
That's unreliable.
Especially since it appears you use AOL. Some versions of the AOL web
browser will just send an empty email, or do nothing at all.

It also won't work for people who don't have a default email client setup
properly, like those in libraries and internet cafes.

It also won't work if people press the cancel button on the system alert
message that most will see; about the message being sent with THEIR email
client.

To make this reliable, have to use serverside scripting. Then the form is
submitted to a script on the server which processes it and sends the email
out using the server's mail system.

See the questions i asked before- reply with what flavor of scripting you
can use, and it will be easy to go forward.


markosillypig

2004-02-29, 4:28 pm

is this what you was asking about ????
and do i set the server up to forward the information on the form ????

regards marko
markosillypig

2004-02-29, 5:28 pm

[q][i]Originally posted by: [b][b]markosillypig[/b][/b][/i]
is this what you was asking about ????
<form action="cgi-bin/mailform.pl" method="post" name="form1" target="_blank">
and do i set the server up to forward the information on the form ????

regards marko[/q]



Alan Ames

2004-02-29, 5:28 pm



> [q][i]Originally posted by: [b][b]markosillypig[/b][/b][/i]
> is this what you was asking about ????
> <form action="cgi-bin/mailform.pl" method="post" name="form1" target="_blank">
> and do i set the server up to forward the information on the form ????



That ~may~ be what i'm asking for, depending on where you got the
information. Is it from your hosting information, or was it pulled out of a
hat? Out of context it isn't useful.

Does your site or your host have that file, mailform.pl installed and at
that location in your site?
Do they give instructions on how to use it?

If yes- follow their instructions.
If no- explain further please.

Alan Ames

2004-02-29, 5:28 pm


>
> If yes- follow their instructions.
> If no- explain further please.
>


To cut to the chase- could you give this information?

1) url address of your website:


2) url address directly to this form:


3) url address to your hosting company:


markosillypig

2004-02-29, 5:29 pm

http://www.blanks4u.com/cgi-bin/mailform.pl is the site url with the form on it
http://www.icuknet.co.uk is the url of the hosting company
Alan Ames

2004-02-29, 5:29 pm



> http://www.blanks4u.com/cgi-bin/mailform.pl is the site url with the form on
> it


okay, so your site is blanks4u.com ?
That's a linux/apache host.

How did mailform.pl get there, inside of your site?
Was it installed from button in your "Control Panel"? Some other way?
Do you have the instructions for it? Go back to how it got there- and find
the readme or the instructions.
they will tell you exactly how to use THAT particular script.

I have no info on that script, there might dozens of variants around with
that name on them. So it's not of any use to offer guesses on what to do-

Someplace, where ever you got the script from; are the exact instructions
(or links to them) on setting your html form up to use that script.


> http://www.icuknet.co.uk is the url of the hosting company


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews