How to send mail from a static .htm website to a php server on another website?

I am currently working on a project where the site is static and the server does not have php installed or another dynamic server. I noticed companies like uservoice that somehow get data from a static website on their servers. How to create a contact form on my static "no php server" website and get the contact form data to another server with php enabled, and then send this data using the phpmail function to the specified email address?

+1
php static email
Apr 21 '11 at 10:21
source share
2 answers

just set the action attribute for your form to point to another server:

<form method="post" action="http://example.com/process.php"> <input type="text" name="my_textfield" /> <input type="submit" value="send!" /> </form> 
+5
Apr 21 '11 at 10:23
source share
— -

Use the form action to submit to the capture server:

 <form action="http://myphpserver.com/contact.php"> 
0
Apr 21 '11 at 10:23
source share



All Articles