Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Sending of Javascript via email
- From: javascript@xxxxxxxxxx (charlie_chan)
- Subject: [Javascript] Sending of Javascript via email
- Date: Thu, 23 Jan 2003 15:38:21 -0600
Please excuse my ignorance of server-side scripting and scripting in general! I was curious as to where the variable formNumber was listed in your script: $formcontent .= "Form Number: $formNumber\n"; //Should take value of formNumber variable Also, should this possibly be written thus: $formcontent = "'Form Number: '+ $formNumber + \n"; //Should take value of formNumber variable or $formcontent = "Form Number: " + $formNumber + \n; //Should take value of formNumber variable. Your humble servent, Charlie Chan ----- Original Message ----- From: <Jamesjackson73@xxxxxxx> To: <javascript@xxxxxxxxxx> Sent: Thursday, January 23, 2003 4:21 AM Subject: [Javascript] Sending of Javascript via email > 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> > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript
- References:
- [Javascript] Sending of Javascript via email
- From: javascript@xxxxxxxxxx
- [Javascript] Sending of Javascript via email
- Prev by Date: [Javascript] change resolution
- Next by Date: [Javascript] Disabling of F1 key and launching custom screen
- Previous by thread: [Javascript] Sending of Javascript via email
- Next by thread: [Javascript] IE 5.0/5.5 on Mac Issues
- Index(es):