kptgreg — 2012-02-04T22:47:13-05:00 — #1
I am not that experienced with php and we created an energy calculator that computes savings. I would like to provide a button to the user to email the results to themselves or whoever else they would like to. I can't just email the link because the calculations reset so I need to collect the final data after the calculations. I am not sure how to do this but I have seen php contact forms that email data to a company's email address. Anyone know how to do this? Here is the page:
abdussamad — 2012-02-05T00:11:33-05:00 — #2
Just add an email field and a submit button next to it. When the data is submitted to the php script on the server it can arrange it in a nice email and send it out.
kptgreg — 2012-02-05T00:33:58-05:00 — #3
not sure what you mean at all...like I said I am new to this. Our energy calculator page isn't using php besides serving up the header and footer. How will it collect the data from the other fields?
frenz48 — 2012-02-05T04:41:15-05:00 — #4
If you could do that, a php script can be called by a button sending said request, with the php script formatting and sending the mail.
kptgreg — 2012-02-05T06:02:53-05:00 — #5
frenz48 — 2012-02-05T07:05:48-05:00 — #6
To make the user input "readable" by php you must pass it onto a php script, either as a http request, or a "submit" button on the form.
It's going to require modification of the JS or HTML to allow for submitting. there is no magic at work in php to catch this sadly, and if it were itd be a security hole...
Figure out if you want to modify it or build it anew.
abdussamad — 2012-02-05T16:06:33-05:00 — #7
This is a help forum for PHP programmers. You are in the wrong place, frankly. If you don't know PHP please hire someone who does.