html and php problem... please help!?

  • Thread starter Thread starter Nithya
  • Start date Start date
N

Nithya

Guest
try this

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

<input type="text" name="license_number"/> <br>
<input type=submit value="Search" />
</form>

******************
<search_found.php>
******************

<?php
$license_number = $_POST["license_number"];
echo $license_number;
?>
 
here's a part of my html code <file name: search.html>:

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

<input type="text" name="license_number"/> <br>
<input type=submit value=Search />
</form>

... and from my php code <search_found.php>


<?php $license_number = $_POST["license_number"];?>
<?php echo $license_number;?>

Why can't my search.html proceed to search_result.php?
and do i really have to convert my htm files to php? why? and how?
thanks alot! ^^
 
<form action="search_found.php" method="post">

<input type="text" name="license_number"/> <br>
<input type="submit" value="Search" />
</form>

you missed the double quote.

<?php
$license_number = $_POST["license_number"];
echo $license_number;
?>
 
Back
Top