markcampion

Registered
Jun 10, 2004
2
0
151
Hi,

i need help with the mailform script and form. i am currently just trying to create a mailing list entry for my site and the fomat is as follows:

Form webpage code:

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<form method="POST" action="http://www.nusclubbing.co.uk/cgi-bin/FormMail.cgi">
<p><input type="submit" value="Submit" name="B1"><input type="text" name="realname" size="20"><input type="text" name="email" size="20"></p>
<input type="hidden" name="recipient" value="[email protected]">
<input type="hidden" name="redirect" value="www.nusclubbing.co.uk">
<input type="hidden" name="subject" value="MAILING LIST ENTY">
</form>
<p>&nbsp;</p>

</body>

</html>

Variables declared:

# @referers allows forms to be located only on servers which are defined #
# in this field. This security fix from the last version which allowed #
# anyone on any server to use your FormMail script on their web site. #

@referers = ('www.nusclubbing.co.uk','69.10.149.72');

# @recipients defines the e-mail addresses or domain names that e-mail can #
# be sent to. This must be filled in correctly to prevent SPAM and allow #
# valid addresses to receive e-mail. Read the documentation to find out how #
# this variable works!!! It is EXTREMELY IMPORTANT. #
@recipients = &fill_recipients('nusclubbing.co.uk');

-------------

Attached is a screen dump of the error i get. One thing that does happen though is that when i enter a email address into the email textbox (i.e my personal email address) i get a reply from the autoresponder i set up on the account that the form is submitted to.

you can find this page to try it for youselves @ http://www.nusclubbing.co.uk/testmailform.htm

Please help as i am totally lost

Mark C :confused:
 

Attachments

drm

Member
Dec 13, 2003
16
0
151
I think the error is because your 'redirect' value needs to include the http://

So you should have

<input type="hidden" name="redirect" value="http://www.nusclubbing.co.uk">
 

markcampion

Registered
Jun 10, 2004
2
0
151
Sorted

thanks for the reply, i've sorted it tho

I had to play around with the variable params. i also found out that i have to name a specific page name when using redirect.:D
 
Thread starter Similar threads Forum Replies Date
L Email 2
J Email 1
M Email 1
M Email 0
B Email 0