Metamorph
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Spremelnjivke+obrazci

Metamorph :: Koda :: PHP

Go down

Spremelnjivke+obrazci Empty Spremelnjivke+obrazci

Objavlja  ameba Pet Jan 16, 2009 12:09 pm

HTML 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

<?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>
[b]
ameba
ameba
Admin

Število prispevkov : 7
Join date : 14/01/2009

https://metamorph.forumsl.net

Nazaj na vrh Go down

Nazaj na vrh

- Similar topics

Metamorph :: Koda :: PHP

 
Permissions in this forum:
Ne, ne moreš odgovarjati na teme v tem forumu