HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
HTML Tutorial

CSS Tutorial

HTML form action - radio HTML form - how to create

The HTML <form> element defines a form that is used to collect user data input. HTML Forms are required, when you need to collect some data from the site visitor.

HTML form action attribute - how to create

HTML syntax form −
<form action = "Script URL" method = "GET|POST">
form elements like input, textarea etc.
</form>
- how to create -
On submit, send the form-data to a file named "/action_name_page.php" (to process the input data):

Example 1:
<!DOCTYPE html>
<html>
<head>
<title>Title of button action</title>
</head>
<body>

<form action="/action_name_page.php">
Name: <input type="text" name="Name" value="Your Name"><br>
Surname: <input type="text" name="SurName" value="Your SurName"><br>
<input type="submit" value="Submit">
</form>

</body>
</html>

The html cod above will display this HTML result where you can colect data as: Name and Surname of your visitors .

Name:
Surname:
Note: You colect this data Name if the user want.

Radio HTML form - how to create - Radio Button Input

This HTML code <input type="radio"> defines a radio button.
Radio buttons let our users to decide ONE of a limited number of choices:
Example 2:
<h2>Radio Buttons example</h2>
<form action="/action_name_page.php">
Name: <input type="text" name="Name" value="Tour Name"><br>
Surname: <input type="text" name="SurName" value="Your Surname"><br>
<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other
<input type="submit" value="Submit">
</form>
The html cod above will display this HTML result where you can colect data as: Name, Surname angender of your visitors. Example 3 of index.html:

Radio Buttons example

Name:
Surname:
Male
Female
Other

HTML form action, radio html form, how to create html form HTML form action - radio HTML form - how to create - html tutorial

2614. Basics : Introduction - HTML Tutorial
HTML basics - HTML tutorial
http://www.echoecho.com/htmlbasics.htm

2613. Backgrounds : Fixed Image - HTML tutorial
HTML backgrounds - HTML tutorial
http://www.echoecho.com/htmlbackgrounds03.htm

2615. Basics : Why Learn HTML? - HTML Tutorial
HTML basics - HTML tutorial
http://www.echoecho.com/htmlbasics01.htm

2626. Forms : Text Field - HTML Tutorial
HTML forms - HTML tutorial
http://www.echoecho.com/htmlforms05.htm

2224. HTML Tutorial - Tags
Beginner
https://tutorialehtml.com/en/beginners-guide-to-html-tags/

2616. Basics : Tags - HTML Tutorial
HTML basics - HTML tutorial
http://www.echoecho.com/htmlbasics02.htm

Your add here
How to get PHP errors to display?
How to prevent sql injection in php mysqli
How do I get PHP errors to display - PHP error_reporting()
mysql_query(): The mysql extension is deprecated and will be removed i
Function eregi_replace() is deprecated in php - How to fix
PHP delete an element from an array
Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in
Deprecated: mysql_connect() mysql extension is deprecated and will be
mysqli_fetch_array() expects parameter 1 to be mysqli_result boolean g
SQL IN Operator - example
SQL BETWEEN Operator
SQL like syntax and example
SQL WHERE AND & OR multiple conditions
SQL create table primary key autoincrement
PHP mysqli_connect () Function
SQL COUNT(), AVG() and SUM() Functions
Display data from SQL database with MySQLi into php - html table
SQL CREATE DATABASE - example
SQL mysql order by columns, by date, by asc, by desc, random with PHP
PHP mysqli_query() Function - mysqli query
SQL delete row - SQL delete table
SQL update - SQL update select
Insert into SQL - Insert into table SQL - Insert data in sql
Login in PHP - simple login script with PHP MYSQL