Re: How can I echo a javascript var in an email subject line? Possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 1:00 PM -0500 4/8/09, Terion Miller wrote:
Thought I would go ahead and post a bit more on this, so here is my
wordcount little function on the textarea of the form:

-snip-

or do I need to define the variable? think I'm starting to confuse myself
lol

The reason why you are starting to confuse yourself is that you are still considering doing some part of this by including javascript in the solution -- there is NO need.

Just receive what the user submits and process it server-side before mailing -- pure and simple.

That way not only can you clean the submission, but you can count the words and put that count in the subject line like you wanted. This really a simple problem. You are complicating it by including javascript.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux