Hi,
I relatively new to PHP and I am having some trouble with a form sending a value to MySQL.
I need to send the value in "$ref" to the database.
The value of ref comes from the URL like this:
when I click submit it says "Column 'CLIENTS' cannot be null" and does not save it in the db.
I know the problem is in
value="<?php $ref;?> but I don't know what I'm missing.
The form is like this:
<form name="form1" method="post" action="<?php echo ($PHP_SELF); ?>">
<input name="submit" type=submit class=button value="Submit">
<input type="hidden" name="CLIENTS" value="<?php $ref;?>">
<input type="hidden" name="MM_insert" value="form2">
</center>
</form>
Thanks for your help, sbayter
I relatively new to PHP and I am having some trouble with a form sending a value to MySQL.
I need to send the value in "$ref" to the database.
The value of ref comes from the URL like this:
when I click submit it says "Column 'CLIENTS' cannot be null" and does not save it in the db.
I know the problem is in
value="<?php $ref;?> but I don't know what I'm missing.
The form is like this:
<form name="form1" method="post" action="<?php echo ($PHP_SELF); ?>">
<input name="submit" type=submit class=button value="Submit">
<input type="hidden" name="CLIENTS" value="<?php $ref;?>">
<input type="hidden" name="MM_insert" value="form2">
</center>
</form>
Thanks for your help, sbayter