Forum Moderators: open

Message Too Old, No Replies

html form questions

to set up a contact form with a 'sent-success' page

         

redleaf

10:14 am on Dec 15, 2004 (gmt 0)

10+ Year Member



A code 500 internal error is hitted as i am trying to set up a form with 'cgiemail' action. the form should then redirect the users to a 'submision success' page.
Any helps or coding samples?
Thanks a lot in advance for your advice.

Span

11:26 am on Dec 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



..coding samples?

It is you, redleaf, who has to give us something to chew on. With examplified URLs, please.

redleaf

1:42 pm on Dec 15, 2004 (gmt 0)

10+ Year Member



Sorry for incomplete info... my form html code is something like that:

<html>
<head>
<title>Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="http://www.mysite.com/cgi-bin/cgiemail">
<p align="center">Name:
<input type="text" name="textfield">
</p>
<p align="center">Email :
<input type="text" name="textfield2">
</p>
<p align="center">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Clear" value="Clear">
</p>
</form>
</body>
</html>

i actually learn this from my hosting guide and i am not very sure on how this works.

rocknbil

5:50 pm on Dec 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



redleaf this
http: ..../cgiemail

is the coding that needs to be reviewed. When you post your form, that is where it's sent and that is where the error comes from, not your form.

I'm **guessing** because you got a stock 500 error (definately the mose informational, helpful error in the world :-/ ) that cgiemail is a perl script.

Is this a form made available by your ISP or loaded on your domain, one that you can view and edit?

There are many things that can cause the error, beginning with not uploading in ASCII format, not having the perl path correct, and execution permissions, among others. Begin by checking out tutorials on perl (if it is indeed a perl mailer) and that should get you on your way.

(*sorry if I've guessed wrong and it's not a perl mailer.)