Jump to content

[SOLVED] quick question


NickG21

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.