NickG21 Posted December 28, 2006 Share Posted December 28, 2006 if i have a page that requests an e-mail address and posts it through the use of a .cgi script. i was wondering if i would be able to include php code inside my html to only run one quick e-mail function before processing the information? is this possible or am i just way off? thanks, nick Link to comment https://forums.phpfreaks.com/topic/32108-solved-quick-question/ Share on other sites More sharing options...
Psycho Posted December 28, 2006 Share Posted December 28, 2006 You're way off. LOL. You can't include PHP code in the HTML to be run on the client side. You could either have the form post back to a PHP page on the server that does whatever processing you want and then sends the data on to the CGI script or you could use AJAX to have the HTML page call a PHP page to do the processing and return the results back to the HTML page. You could do that automatically upon submisssion of the page. Link to comment https://forums.phpfreaks.com/topic/32108-solved-quick-question/#findComment-149000 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.