Jump to content

html form coding in .php file


Guest chandran

Recommended Posts

Guest chandran

Is there any way for using a single .php file, combining both PHP and HTML in one simple text file, to retrieve the data and display the results. please give example if any.

Link to comment
Share on other sites

if(isset($_POST['submitted'])){ //conect to database //update table //check form variables // assign variables}//show the html form where the data is connected//action is to php_self

Google on 'php redux'.http://www.peachpit.com/articles/article.a...qNum=2&rl=1

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...