random26069
IS-IT--Management
Hi people, it's been a LONG time since I did any perl and I was wondering if someone could pease give me a quick example for the following so I don't have to digou books and do 10 hours research for a 5 minute job...
I need to create an HTML doc with two text boxes on it for the user to nter informtion into (if I remember correctly I can name them, I'll name them txtuname and txtemail). Then I need a form button (submit? Yes, been a long time lol). Please include an example of he code for this HTML button to call the script.
The script needs to:
Check to make sure the txtuname field is not blank.
Make sure the txtemail field is a valid email address - if it is blank or NOT a valid email format (address@domain.sub) then substitute the value "private" for the email address
Open a text file for APPEND
Write the name and email address to the end of the file, one piece of info per line so it is written asfllows:
uname1
uemail1
uname2
uemail2
etc.
Or, if you're feeling really ambitious, it can write it
uname1 uemail1 (or uname1,uemail1)
uname2 uemail2 (or uname2,uemail2)
as long as you include a snippet to remnd me how to get the individual name & email data into 2 separate javascript variables (off the top of my head I only remember line reading)
Thanks!
I need to create an HTML doc with two text boxes on it for the user to nter informtion into (if I remember correctly I can name them, I'll name them txtuname and txtemail). Then I need a form button (submit? Yes, been a long time lol). Please include an example of he code for this HTML button to call the script.
The script needs to:
Check to make sure the txtuname field is not blank.
Make sure the txtemail field is a valid email address - if it is blank or NOT a valid email format (address@domain.sub) then substitute the value "private" for the email address
Open a text file for APPEND
Write the name and email address to the end of the file, one piece of info per line so it is written asfllows:
uname1
uemail1
uname2
uemail2
etc.
Or, if you're feeling really ambitious, it can write it
uname1 uemail1 (or uname1,uemail1)
uname2 uemail2 (or uname2,uemail2)
as long as you include a snippet to remnd me how to get the individual name & email data into 2 separate javascript variables (off the top of my head I only remember line reading)
Thanks!