Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving Information

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
i have some java scipt in a page that records some user information. i want to be able to store this somewhere. ideally, i want to save it in a text file somewhere within my website, but failiing that i could have it emailed to me.

the code in my page, at the moment, concatinates all the information i want to save into a single string. after that is the line...

alert(myInformation);

...this is the line i intend to replace with code that saves myInformation.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
i don't want to use mailto:. i need something automatic, that doesn't require the user to have an email program set up. i know i need serverside script - that's why i'm in the CGI forum. what is the script i need?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Look for a secure version of formmail on google
HTH
--Paul
 
i've got a copy of formmail.pl - how do i use it? i assume it wants to go in my cgi bin - bit what code to i need in the actual page? is there a way of testing it before uploading it?

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
I guess you didn't read the entire post

'You'd have to install a custom script on a server and have your javascript submit the info that that script to get more specific interactions.'

Go get a formmail script , adjust your javascript to submit the parameters properly and your in business.

No, you usually can not test before upload. Upload it ,test it, tweak it, reupload it and on and on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top