Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Sending of Javascript via email
- From: javascript@xxxxxxxxxx (javascript@xxxxxxxxxx)
- Subject: [Javascript] Sending of Javascript via email
- Date: Thu, 23 Jan 2003 05:21:37 -0500
Help... I have a form in which Ive used the Javascript Date() function to display a numbering system on that forms page, seen here -> http://www.topweb.co.uk/help/form4.htm in the format (date/month/hour/minute/second) 23 01 10 20 18. but then I want to send the above values along with the other entered form fields when submit is pressed. but I can't seem to transfer the values of 'formNumber'. I thought maybe I could use a hidden field, but unsure how to. Below is the php script (important bits only) Please explain in laymans terms... I'm a newbie... Regards Jim ***PHP Script***form4mail.php3*** <html> <head> <title>form4mail</title> </head> <body> <?php $formcontent = ""; $formcontent .= "Form Number: $formNumber\n"; //Should take value of formNumber variable $toaddress = "jamesjackson73@xxxxxxx"; $subjectline = "Form completed by *sender* "; $headers = "From: *senderemail*\n"; mail( $toaddress, $subjectline, $formcontent, $headers); echo " <b>Thank you, The following email has been sent to $toaddress:</b> <pre>$formcontent</pre> "; // end echo statement ?> // end php </body> </html>
- Follow-Ups:
- [Javascript] Sending of Javascript via email
- From: charlie_chan
- [Javascript] Sending of Javascript via email
- Prev by Date: [Javascript] Disabling of F1 key and launching custom screen
- Next by Date: [Javascript] IE 5.0/5.5 on Mac Issues
- Previous by thread: [Javascript] Disabling of F1 key and launching custom screen
- Next by thread: [Javascript] Sending of Javascript via email
- Index(es):