0% found this document useful (0 votes)
55 views29 pages

Sarcini CGI Form

The document contains an HTML form with fields for name, email, website, comment, gender selection (radio buttons), and a submit button to submit the form data. The form is designed to validate user input on the PHP backend script fornamexample.php.

Uploaded by

Dan Efros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views29 pages

Sarcini CGI Form

The document contains an HTML form with fields for name, email, website, comment, gender selection (radio buttons), and a submit button to submit the form data. The form is designed to validate user input on the PHP backend script fornamexample.php.

Uploaded by

Dan Efros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 29

Var 1.

<!DOCTYPE HTML> 
<html>
<head>
</head>
<body> 
<h2>PHP Form Validation Example</h2>
<form method="post" action="formexample.php"> 
   Name: <input type="text" name="name">
   <br><br>
   E-mail: <input type="text" name="email">
   <br><br>
   Website: <input type="text" name="website">
   <br><br>
   Comment: <textarea name="comment" rows="5" cols="40"></textarea>
   <br><br>
   Gender:
   <input type="radio" name="gender" value="female">Female
   <input type="radio" name="gender" value="male">Male
   <br><br>
   <input type="submit" name="submit" value="Submit"> 
</form>
</body>
</html>
Var 2.

<form action="index.php" method="post">


Name:<input type="text" name="name" size="20" maxlength="40" value="" />
Email Address:
<input type="text" name="email" size="20" maxlength="40" value="" />
<input type="submit" name = "submit" value="Go!" />
</form>
Var 3.

<html>
<head>
<title>An HTML Form that Calls Itself</title>
</head>
<body>
<div>
<form method="post" action="examplesimple.php">
<p>
Type your guess here: <input type="text" name="guess" />
<input type="submit" name = "submit" value="Check my guess" />

</p>
</form>
</div>
</body>
</html>
Var 4.

<form method="post" action="ex4.php">

<label for="name">What is your name?</label> <input type="text" name="name" id="name">

<label for="yearborn">What year were you born? <input type="text" name="yearborn"


id="yearborn">
<label for="favcolor">What is your favorite color? <input type="text" name="favcolor"
id="favcolor">

<input type="Submit" value="Submit to Test PHP Script">


</form>
Var 5.

<form action="test.php" method="post">


<table width="400" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="29%" class="bodytext">Your name:</td>
<td width="71%"><input name="name" type="text" id="name" size="32"></td>
</tr>
<tr>
<td class="bodytext">Email address:</td>
<td><input name="email" type="text" id="email" size="32"></td>
</tr>
<tr>
<td class="bodytext">Comment:</td>
<td><textarea name="comment" cols="45" rows="6" id="comment"
class="bodytext"></textarea></td>
</tr>
<tr>
<td class="bodytext"> </td>
<td align="left" valign="top"><input type="submit" name="Submit" value="Send"></td>
</tr>
</table>
</form>
Var 6.

<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form method="post" action="<someexample.php">
First Name:<input type="text" size="12" maxlength="12" name="Fname"><br />
Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br />
Gender:<br />
Male:<input type="radio" value="Male" name="gender"><br />
Female:<input type="radio" value="Female" name="gender"><br />
Please choose type of residence:<br />
Steak:<input type="checkbox" value="Steak" name="food[]"><br />
Pizza:<input type="checkbox" value="Pizza" name="food[]"><br />
Chicken:<input type="checkbox" value="Chicken" name="food[]"><br />
<textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!
</textarea><br />
Select a Level of Education:<br />
<select name="education">
<option value="Jr.High">Jr.High</option>
<option value="HighSchool">HighSchool</option>
<option value="College">College</option></select><br />
Select your favorite time of day:<br />
<select name="TofD" size="3">
<option value="Morning">Morning</option>
<option value="Day">Day</option>
<option value="Night">Night</option></select><br />
<input type="submit" value="submit" name="submit">
</form>
Var 7.

<html>
<head>
<title>My Form</title>
</head>
<body>
<form action="bad_words.php" method=post>
My name is:
<br> <input type="text" name="YourName">
My favorite dirty word is:
<br /><input type="text" name="FavoriteWord">
<input type="submit" name="submit" value="That's Right!">
</form>
</body>
</html>
Var 8.

<!DOCTYPE html >


<head>
<title>A Web Page</title>
</head>
<body>
<form action="form_process.php" method="post">
First Name: <input type="text" name="FName"/>
Last Name: <input type="text" name="LName"/>
City: <input type="text" name="City"/>
State: <input type="text" name="State"/>
Message: <textarea name="Message" cols="30" rows="5"></textarea>
<input type="submit" name="submit" value="Submit Data"/>
</form>
</body>
</html>
Var 9.

<html>
<head>
<title>Пример </title>
</head>
<body>
<h1 Введите номер карточки </h1>
<form name="form1" action="analysis.php" method="post">
<p>Номер карточки:
<input name="cardnumber" type="text" size="20">
<input name="Verify" type="submit" >
</form>
</body>
</html>
Var 10.

<html>
<head>
<title>Aplicatie formular </title>
</head>
<body style="font-family: verdana,sans-serif; font-size: small;">

<form action="" method="post" style="width: 30%">


<fieldset>
<legend>Date de autentificare</legend>
<input type="text" name="user" /> User<br />
<input type="password" name="pass" /> Pass<br />
</fieldset>
<fieldset>
<legend>Actiuni</legend>
<input type="submit" value="Login" name="trimite" />
<input type="reset" value="Curata formular" />
</fieldset>
</form>
</body>
</html>
Var 11.

<!DOCTYPE html>
<html lang="ro">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="utf-8">
<title>Notele grupei IA-123</title>
</head>
<body>

<h2>exemplu de CGI</h2>
<h3>Notele grupei IA-123 la examen intermediar</h3>
<form method="get" action="noteleIA123.php" accept-charset="utf-8">
Introduceţi prenumele: <input type="text" id="txt" name="txt" />
<input type="submit" value="arată notele/оценки" />
</form>

</body>
</html>
Var 12.

<!DOCTYPE HTML> 
<html>
<head>
</head>
<body> 
<h2>PHP Form Validation Example</h2>
<form method="post" action="formexample.php"> 
   Name: <input type="text" name="name">
   <br><br>
   E-mail: <input type="text" name="email">
   <br><br>
   Website: <input type="text" name="website">
   <br><br>
   Comment: <textarea name="comment" rows="5" cols="40"></textarea>
   <br><br>
   Gender:
   <input type="radio" name="gender" value="female">Female
   <input type="radio" name="gender" value="male">Male
   <br><br>
   <input type="submit" name="submit" value="Submit"> 
</form>
</body>
</html>
Var 13.

<form action="index.php" method="post">


Name:<input type="text" name="name" size="20" maxlength="40" value="" />
Email Address:
<input type="text" name="email" size="20" maxlength="40" value="" />
<input type="submit" name = "submit" value="Go!" />
</form>
Var 14.

<html>
<head>
<title>An HTML Form that Calls Itself</title>
</head>
<body>
<div>
<form method="post" action="examplesimple.php">
<p>
Type your guess here: <input type="text" name="guess" />
<input type="submit" name = "submit" value="Check my guess" />

</p>
</form>
</div>
</body>
</html>
Var 15.

<form method="post" action="ex4.php">

<label for="name">What is your name?</label> <input type="text" name="name" id="name">

<label for="yearborn">What year were you born? <input type="text" name="yearborn"


id="yearborn">
<label for="favcolor">What is your favorite color? <input type="text" name="favcolor"
id="favcolor">

<input type="Submit" value="Submit to Test PHP Script">


</form>
Var 16.

<form action="test.php" method="post">


<table width="400" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="29%" class="bodytext">Your name:</td>
<td width="71%"><input name="name" type="text" id="name" size="32"></td>
</tr>
<tr>
<td class="bodytext">Email address:</td>
<td><input name="email" type="text" id="email" size="32"></td>
</tr>
<tr>
<td class="bodytext">Comment:</td>
<td><textarea name="comment" cols="45" rows="6" id="comment"
class="bodytext"></textarea></td>
</tr>
<tr>
<td class="bodytext"> </td>
<td align="left" valign="top"><input type="submit" name="Submit" value="Send"></td>
</tr>
</table>
</form>
Var 17.

<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form method="post" action="<someexample.php">
First Name:<input type="text" size="12" maxlength="12" name="Fname"><br />
Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br />
Gender:<br />
Male:<input type="radio" value="Male" name="gender"><br />
Female:<input type="radio" value="Female" name="gender"><br />
Please choose type of residence:<br />
Steak:<input type="checkbox" value="Steak" name="food[]"><br />
Pizza:<input type="checkbox" value="Pizza" name="food[]"><br />
Chicken:<input type="checkbox" value="Chicken" name="food[]"><br />
<textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!
</textarea><br />
Select a Level of Education:<br />
<select name="education">
<option value="Jr.High">Jr.High</option>
<option value="HighSchool">HighSchool</option>
<option value="College">College</option></select><br />
Select your favorite time of day:<br />
<select name="TofD" size="3">
<option value="Morning">Morning</option>
<option value="Day">Day</option>
<option value="Night">Night</option></select><br />
<input type="submit" value="submit" name="submit">
</form>
Var 18.

<html>
<head>
<title>My Form</title>
</head>
<body>
<form action="bad_words.php" method=post>
My name is:
<br> <input type="text" name="YourName">
My favorite dirty word is:
<br /><input type="text" name="FavoriteWord">
<input type="submit" name="submit" value="That's Right!">
</form>
</body>
</html>
Var 19.

<!DOCTYPE html >


<head>
<title>A Web Page</title>
</head>
<body>
<form action="form_process.php" method="post">
First Name: <input type="text" name="FName"/>
Last Name: <input type="text" name="LName"/>
City: <input type="text" name="City"/>
State: <input type="text" name="State"/>
Message: <textarea name="Message" cols="30" rows="5"></textarea>
<input type="submit" name="submit" value="Submit Data"/>
</form>
</body>
</html>
Var 20.

<html>
<head>
<title>Пример </title>
</head>
<body>
<h1 Введите номер карточки </h1>
<form name="form1" action="analysis.php" method="post">
<p>Номер карточки:
<input name="cardnumber" type="text" size="20">
<input name="Verify" type="submit" >
</form>
</body>
</html>
Var 21.

<html>
<head>
<title>Aplicatie formular </title>
</head>
<body style="font-family: verdana,sans-serif; font-size: small;">

<form action="" method="post" style="width: 30%">


<fieldset>
<legend>Date de autentificare</legend>
<input type="text" name="user" /> User<br />
<input type="password" name="pass" /> Pass<br />
</fieldset>
<fieldset>
<legend>Actiuni</legend>
<input type="submit" value="Login" name="trimite" />
<input type="reset" value="Curata formular" />
</fieldset>
</form>
</body>
</html>
Var 22.

<!DOCTYPE html>
<html lang="ro">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="utf-8">
<title>Notele grupei IA-123</title>
</head>
<body>

<h2>exemplu de CGI</h2>
<h3>Notele grupei IA-123 la examen intermediar</h3>
<form method="get" action="noteleIA123.php" accept-charset="utf-8">
Introduceţi prenumele: <input type="text" id="txt" name="txt" />
<input type="submit" value="arată notele/оценки" />
</form>

</body>
</html>
Var 23.

<html>
<head>
<title>Пример </title>
</head>
<body>
<h1 Введите номер карточки </h1>
<form name="form1" action="analysis.php" method="post">
<p>Номер карточки:
<input name="cardnumber" type="text" size="20">
<input name="Verify" type="submit" >
</form>
</body>
</html>
Var 24.

<html>
<head>
<title>Aplicatie formular </title>
</head>
<body style="font-family: verdana,sans-serif; font-size: small;">

<form action="" method="post" style="width: 30%">


<fieldset>
<legend>Date de autentificare</legend>
<input type="text" name="user" /> User<br />
<input type="password" name="pass" /> Pass<br />
</fieldset>
<fieldset>
<legend>Actiuni</legend>
<input type="submit" value="Login" name="trimite" />
<input type="reset" value="Curata formular" />
</fieldset>
</form>
</body>
</html>
Var 25.

<!DOCTYPE html>
<html lang="ro">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="utf-8">
<title>Notele grupei IA-123</title>
</head>
<body>

<h2>exemplu de CGI</h2>
<h3>Notele grupei IA-123 la examen intermediar</h3>
<form method="get" action="noteleIA123.php" accept-charset="utf-8">
Introduceţi prenumele: <input type="text" id="txt" name="txt" />
<input type="submit" value="arată notele/оценки" />
</form>

</body>
</html>
Var 26.

<!DOCTYPE HTML> 
<html>
<head>
</head>
<body> 
<h2>PHP Form Validation Example</h2>
<form method="post" action="formexample.php"> 
   Name: <input type="text" name="name">
   <br><br>
   E-mail: <input type="text" name="email">
   <br><br>
   Website: <input type="text" name="website">
   <br><br>
   Comment: <textarea name="comment" rows="5" cols="40"></textarea>
   <br><br>
   Gender:
   <input type="radio" name="gender" value="female">Female
   <input type="radio" name="gender" value="male">Male
   <br><br>
   <input type="submit" name="submit" value="Submit"> 
</form>
</body>
</html>
Var 27.

<form action="index.php" method="post">


Name:<input type="text" name="name" size="20" maxlength="40" value="" />
Email Address:
<input type="text" name="email" size="20" maxlength="40" value="" />
<input type="submit" name = "submit" value="Go!" />
</form>
Var 28.

<html>
<head>
<title>An HTML Form that Calls Itself</title>
</head>
<body>
<div>
<form method="post" action="examplesimple.php">
<p>
Type your guess here: <input type="text" name="guess" />
<input type="submit" name = "submit" value="Check my guess" />

</p>
</form>
</div>
</body>
</html>
Var 29.

<form method="post" action="ex4.php">

<label for="name">What is your name?</label> <input type="text" name="name" id="name">

<label for="yearborn">What year were you born? <input type="text" name="yearborn"


id="yearborn">
<label for="favcolor">What is your favorite color? <input type="text" name="favcolor"
id="favcolor">

<input type="Submit" value="Submit to Test PHP Script">


</form>

You might also like