PHP Sop1 Tags-1
PHP Sop1 Tags-1
1. <form> Tag
Definition and Usage
The <form> tag is used to create an HTML form for user input. The form in html is
created by using element as <form></form>
2. Form controls: A form is a collection of different elements also called as controls like
textbox, radio button, checkbox, submit button and many more.
2. <Input> Tag
Attributes
formmetho get Defines the HTTP method for sending data to the action URL (for
d post type="submit" and type="image")
The isset() function checks whether a variable is set, which means that it has to be declared and
is not NULL.
This function returns true if the variable exists and is not NULL, otherwise it returns false.
Note: If multiple variables are supplied, then this function will return true only if all of the
variables are set.
Note: The echo() function is not actually a function, so you are not required to use parentheses
with it. However, if you want to pass more than one parameter to echo(), using parentheses will
generate a parse error.
Syntax
echo(strings)
5. PHP Syntax
A PHP script is executed on the server, and the plain HTML result is sent back to the
browser.
Basic PHP Syntax
<?php
// PHP code goes here
?>
A PHP file normally contains HTML tags, and some PHP scripting code.