View Full Version : form won't work :(
<html>
<head>
im made this form and im using tripod to host it but im having problems, it wont post. I just get a 405 error, anyone know why?
<title>test</title>
</head>
<body>
<font face="arial" size="2">
<h3>Please provide feedback</h3><br><p>
<Form name="feedback" method="post" action="http://marley04.tripod.com/cgi-bin/email.txt>
<input type="hidden" name="success" value="http://www.marley04.tripod.com/thanks.htm">
<ql>
<Li>what is ur name?<br>
<input type="textbox" name="name" size="30">
<p>
<Li>What is ur age?<br>
<input type="password" name="student id" size="30">
<p>
<input type="submit" name="submit" value="submit!">
</form>
</body>
</html>
su root
03-11-04, 10:01 AM
You are posting to a text file? Is there any code in the .txt file? If so, does tripod allow you to run code at all? under that extension?
You should not use .txt for code... .txt is generally of the text/plain variety, which could potentially allow people to see your code. Should try .php .cgi .pl or whichever is the default for your language.
L337 M33P
03-11-04, 10:02 AM
Holy screwed up page formatting batman!
Is it me or does everyone else get a huge box with odd text size in on the forum page with this thread? I know posts filter out HTML but obviously not in the title O_o
anyway - have you an other pages, and did they give you problems?
Tripod may not allow "POST" commands as it relates to file UL and DL activities.
ataturk
03-11-04, 12:05 PM
Shouldn't you have a php (or cgi) script where you post to? And check the html, for example, in <Form name="feedback" method="post" action="http://marley04.tripod.com/cgi-bin/email.txt>, you haven't closed the action="".
the .txt is just a simple page that is sent to me with the filled in information inside, i have no idea what ur means wrong with the page formatting, and why do u think i need a php script? and this is cgi.
edit - oh dear just noticed that page formatting thing, im thinking its some kind of result of me putting HTML in this post, i appologise and i really had no idea id done it.
su root
03-11-04, 06:48 PM
Originally posted by Marley
the .txt is just a simple page that is sent to me with the filled in information inside, i have no idea what ur means wrong with the page formatting, and why do u think i need a php script? and this is cgi.
If there's no code in that file, then you are sending data to a file that can't do anything with it. Ideally, you should just be forwarded to that text file, where the text file would do nothing but display itself (no extra fields, nothing).
If you are getting errors, then it is probably because tripod doesn't like POST.
I dont' see the point of posting to a text file...
Thats odd. Code in your post affected whats in the thread title. :eek:
diggingforgold
03-11-04, 08:18 PM
LOL! That's a first. I thought vB was pretty robust against glitches like this... I guess not.
About the form. Try using a formmail type form. Info is submitted and emailed to your email account directly.
http://www.scriptarchive.com/formmail.html
I have used it, and as a noob to all things php, I can say it is very easy to set up and run.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.