Write FORM data to text file?
take the contents of each of the 3 fields and store
them in a text file.
==============================================
Form
==============================================
Enter Website URL Here: [_________________]
Enter Account ID# Here: [_________________]
Enter Email Address Here: [_________________]
[ SUBMIT ]
==============================================
When the user submits that form, the information
gets written to a text file containing only this:
==============================================
Text file named info.inc
==============================================
<?php
$weburl = "WebSiteName.com";
$accountid = "12345";
$email = "usersemail@anymailaddress.com";
?>
==============================================
Any time the user goes back to the form above
and changes the data in any of the 3 fields,
the text file will be overwritten accordingly.
Note: The text file will have the CHMOD
permission set to 644 so nobody else can
write to it.
Note: The form will be in a password protected
folder.
No help needed to create the form and
password protected folder. I just need to
know how to get the form SUBMIT to overwrite
the text file to contain the new form data.
Thanks!
Gene
-
mywebwork -
[ 1 ] Thanks
{{ DiscussionBoard.errors[921820].message }} -
-
Gene Pimentel -
Thanks
{{ DiscussionBoard.errors[923144].message }} -
-
john_kennedy -
Thanks - 1 reply
{{ DiscussionBoard.errors[923184].message }}-
Gene Pimentel -
Thanks
{{ DiscussionBoard.errors[923302].message }} -
-
-
john_kennedy -
[ 1 ] Thanks
{{ DiscussionBoard.errors[923385].message }} -
-
Gene Pimentel -
Thanks
{{ DiscussionBoard.errors[923847].message }} -
-
john_kennedy -
Thanks
{{ DiscussionBoard.errors[923886].message }} -