Spremelnjivke+obrazci
Spremelnjivke+obrazci
HTML koda
PHP koda
<html>
<head>
<title>Simple HTML Form</title>
</head>
<body bgcolor="lightblue"><font size="+1">
<form action="http://localhost/final_examples/ex4.22.php" />
<p>
please enter your name: <br />
<input type="text" size=30 name="your_name" />
<br>
please enter your phone number: <br>
<input type="text" size=30 name="your_phone" />
<br />
<input type=submit value="submit" />
</form>
</body>
</html>
PHP koda
[b]
<?php
extract($_REQUEST);
print "Your phone number is $your_name. <br>";
print "Your phone number is $your_phone.";
?>
<html><head><title>Testing Variables</title></head>
<body>
Your phone number is <?=$your_name?> and your phone number is <?=$your_phone?>
</body>
</html>
Permissions in this forum:
Ne, ne moreš odgovarjati na teme v tem forumu
|
|