Page 1 of 1

Is there a way... (POST form)

Posted: Mon May 04, 2009 7:42 pm
by pedrowasabi
Hi everyone there, I'm new here in this forum (and new to PHP too) and I'm having a bit of a situation.

I have an HTML code with a POST form. What I need is the following:
When the user submits the form, an SQL query is made; now, depending on the result of that query, the form should go ahead normally or actually the form data should be forwarded to a third party site (PHP).

It would be like to make a new POST from the PHP code...

Is it clear?? :?

Thanks!!
Pedro

Re: Is there a way... (POST form)

Posted: Mon May 04, 2009 8:10 pm
by tech603
What your asking can be done pretty simply. You may want to take a look at these forums to help you along your way. This is one of my preferred sites for php tutorials.

forms and php
http://www.w3schools.com/php/php_forms.asp

mysql and php
http://www.w3schools.com/PHP/php_mysql_intro.asp

Once your able to post your form data, you can then start experimenting with how you want to display your database data based on form data or how you want to redirect users to another site.

Hope these tutorials help you along your way.