Is there a way... (POST form)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pedrowasabi
Forum Newbie
Posts: 1
Joined: Mon May 04, 2009 7:38 pm

Is there a way... (POST form)

Post 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
tech603
Forum Commoner
Posts: 84
Joined: Thu Mar 19, 2009 12:27 am

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

Post 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.
Post Reply