View Full Version : Help needed on Saving Textbox to txt file

07-13-2008, 03:59 PM
this is the situation

i have a site in which i need to save the email addresses people provide in some file.

What I Want-

i want a textbox in which people write their email addresses(like mike@gmail.com) and hit the Submit button.

this should save their email addresses in another text file(reg.txt) on my site. It may save anywhere actually.

Also, After they click Submit, they should be taken to some other webpage on my site.

Thanks in advance,
sorry for my grammer

07-13-2008, 07:52 PM
HTML can't do this either. You need to use a server side language like php or asp.

07-14-2008, 01:37 AM
I'm just curious, I know a bit of java (and this can be done), but can this be done in JS (which i don't know, hence my question)?

07-14-2008, 03:06 AM
Nope can't be done in JS either.

07-18-2008, 04:57 PM
ok, then please tell me some alterrnative method

07-18-2008, 05:09 PM
Well it needs to be done with a server-side language such as php. Then you can use javascript to re-direct the user to another page.

saving email (http://www.htmlgoodies.com/beyond/php/article.php/3485086)


for the javascript

<script type="text/javascript">
function Redirect()

<input name="Submit" type="submit" value="Submit" onclick="Redirect();" />

08-30-2008, 10:04 AM
i read "saving email" but could not understand it.
it needs some extra coding which i can't do.

can you please give the code i should put in my site

thanks in advance