Forum Moderators: phranque

Message Too Old, No Replies

.htm form to .php

Using a form to send email address to database

         

The Cricketer

2:17 pm on Jun 22, 2004 (gmt 0)

10+ Year Member



I have a website where the web server does not have the technology to process dynamic pages. Another web site I run can process .php files and mysql.

On the home page of the first web site I want a form input box where the user inputs their email address, they click SUBMIT, the form content then gets sent to the other website where it can be processed by the php page and the email address can be inserted into a database.

Is it possible using a plain .htm file to use the post action to attach the email address as a string so that it can be used by the php page. Are there any issues that i should know about?

Hope someone can lend a thought.

brotherhood of LAN

4:04 pm on Jun 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You can just place a <form> on your static page and set the action attribute to point to your PHP script on the other server.

AFAIK your situation isnt different from any other other than the fact you have to point the form to a diff. server....the $_POST or $_GET variables will be available as usual.