Hello.
I add a hidden fields in the form, I want the value of the hidden filels to get a variable, the varialbe is a username, so I composing the script:
<form name="form_userprofile" method="POST" action="http://www.yayalearn.com/ABVFP/dbts_abvfp.php" enctype="multipart/form-data" id="Form1"
<?php
$membername=$_SESSION['username'];
?>
<input type="hidden" name="f0_username" value='$membername'>
<input type="hidden" name="Formid" value="2">
but when I check the table in my SQL database, the hidden fields "f0_username" value is "NULL" .
Please help me.
Thanks
Lucy
I add a hidden fields in the form, I want the value of the hidden filels to get a variable, the varialbe is a username, so I composing the script:
<form name="form_userprofile" method="POST" action="http://www.yayalearn.com/ABVFP/dbts_abvfp.php" enctype="multipart/form-data" id="Form1"
<?php
$membername=$_SESSION['username'];
?>
<input type="hidden" name="f0_username" value='$membername'>
<input type="hidden" name="Formid" value="2">
but when I check the table in my SQL database, the hidden fields "f0_username" value is "NULL" .
Please help me.
Thanks
Lucy
Comment