sample code
Code:
<?php
$userID = html text box value like "uid".
without using GET or POST method
because that method refresh page.
my question is
how can i set the value of html textbox name "uid"
in the php variable $userid?
?>
<script>
function fun()
{ alert("<?php echo($userid) ;?>") }
</script>
<input type="text" id="uid">
<input type="button" id="ok" onclick="fun()">
Comment