I am trying to find a way to may a onclick javascript function execute a mailer script that I have setup on the same page. Is this possible?
<input type="radio" name="power" value="Diesel Powered" onclick="executeMailer()">
I am trying to find a way to may a onclick javascript function execute a mailer script that I have setup on the same page. Is this possible?
<input type="radio" name="power" value="Diesel Powered" onclick="executeMailer()">
This is only possible using Ajax or similar. Google for it, there are enough tutorials and howtos around.
You need to do a web request from your javascript code.
For instance, if the php code you want to run is located at http://www.yo.com/target.php, you need to make an http request to this page from your javascript code, grab the response and do what you need to do with it.
It is called AJAX.