Link to home
Start Free TrialLog in
Avatar of jalexan123
jalexan123

asked on

Where Can I Get A Script To Record Users Email Details??

Hi,

Ok, I know this is more of a where can I find question rather than a technical problem but I have looked through loads of the script sites and can't quite find what I am looking for.

My website is under-development and currently there is a holding page where my site is going to be. I would like to add some sales blurb to that page and a "Register your interest" bit. All I need to ask the visitor is their name and email address and of course be able to view that information some how.

Does anybody know where I can get a script that will do that??

Many thanks to anybody that can help.

Jon
ASKER CERTIFIED SOLUTION
Avatar of idmisk
idmisk
Flag of Austria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jalexan123
jalexan123

ASKER

Hi,

Many thanks, ok, onto the dumb questions :-

A) What do I call the php file?

B) How does the form on the webpage know to interact with that file?

Again, sorry for silly questions.

Jon
there are never dump questions only answers.

a) index.php
b) it will create it on the server. if not please tell it and i give you a step-by-step how do it manually

just to be sure: do your hoster offer PHP support?
Hi,

Ok, you may need to explain B to me if possible.

The server is actually my dedicated server and it does support php.

Thanks
Jon
apache webserver is running as an user. every user has right to read and write something. usually, the directory in which the webpages are, is not writeable by this user. so the best way is to create a subdirectory in this directory and then to change the owner of this directory. example
your pages are now in /var/www
create a subdirectory: mkdir /var/www/info
find out what is the apache user: grep -i "^User "/etc/httpd/conf/httpd.conf
lets say it is: 'User apache'
do: chown apache /var/www/info
change the path in above script to: $filename = "info/posts.txt";

as i already mentioned this is very simple script - it should only show you how you can do it. it is better to take a mature script, which includes checks and also more features.
Thanks idmisk, it has put me on the right track, thanks for your help!!

Jon
agree, will not happen again.