We had a former employee write a php script to seach a mysql database. The page works but now we want to add an email field and have that write to a separate database. We asked the now former employee and says we need to create code to emulate a POST that writes to the seprate Mysql database. He wont be any more specific that that. Does he mean write a second post and what about the submit button, which has different attributes. Any help would be appreciated .
is the code large, what do you mean by only add an email and why only that to a separate database, we need more info
this seems so simple, is it a regular php script, etc...
Here is the situation. We already have a form method="GET" action="results.php" that search a mysql database based on an external function file. We also have a second mysqlserver database done in Java and Tomcat and the post is like action="http://111.111.611.222:8888/webapp/pages" method="post"> <input type="hidden" name="action" value="data" /> and the submit <input type="submit" name="data" value="click" class="formButton" />. We want to create a new field in the form call email to write into this database. How can these different post and submits work together in one form?
and you need to do both at once with one submit button click
makes a little more sense now, but if you need to emulate like he is saying, he is talking that you'll have to look into [man]curl[/man]