PHP Tutorial:17: how to create a form in php :Creating a registration form using PHP:create php form

preview_player
Показать описание
This chapter shows how to keep the values in the input fields when the user hits the submit button.

PHP - Keep The Values in The Form to create php form
To show the values in the input fields after the user hits the submit button, we add a little PHP script inside the value attribute of the following input fields: name, email, and website. In the comment textarea field, we put the script between the textarea and textareatags. The little script outputs the value of the name, $email, $website, and $comment variables.

Then, we also need to show which radio button that was checked. For this, we must manipulate the checked attribute (not the value attribute for radio buttons):
php form and create form in php

-~-~~-~~~-~~-~-
Please watch: "Php hacks : How to create website step by step using php and mysql : part 8"
-~-~~-~~~-~~-~-
Рекомендации по теме