help subscribe button save emails

4 posts Page 1 of 1
Contributors
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

help subscribe button save emails
Shim
hello guys :)

i need your help now i have a text box and a button i want to save the text when clicking the button


actually i wanted to make a subscription system like this help me out please

Image
Find my programs on Softpedia
Filip
Coding Guru
Coding Guru
Posts: 833
Joined: Wed Jan 05, 2011 3:59 pm

Re: help subscribe button save emails
Filip
Where do you want to save text? Flat file or database?
CodenStuff wrote:
Nope, it's just your sick and dirty mind. You sick twisted warped little pervo :D
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

If what you want is writing the contents of the TextBox into a text file, you could use PHP:
Code: Select all
<?php
$email = $_GET['yourtextboxname'];
$textfile = fopen("filename.txt",'w');
fwrite($textfile,$email);
?>
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: help subscribe button save emails
Shim
comathi wrote:
If what you want is writing the contents of the TextBox into a text file, you could use PHP:
Code: Select all
<?php
$email = $_GET['yourtextboxname'];
$textfile = fopen("filename.txt",'w');
fwrite($textfile,$email);
?>
i think your code works but can you explain more i mean can you write them on a html and give it to me :) i forgot everything on web developments because i didnt developed any for a long time :) hope you will help me :)

thanks in advance
Find my programs on Softpedia
4 posts Page 1 of 1
Return to “Tutorials”