field not showing up

admin

Administrator
Staff member
Hiya could some one tell me why the id field isn't getting the value when as far as i can see its the exactly the same as the other parts of the form where everything does show up

if ($submit){

$rs = mysql_query("INSERT INTO app (name,company,address,suburb,state,post,areacode,phone,faxareacode,fax,email) VALUES ('$name','$company','$address','$suburb','$state','$post','$areacode','$phone','$faxareacode','$fax','$email')");

if($name){

$rs = mysql_query("UPDATE app SET name='$name',company='$company',address='$address',suburb='$suburb',state='$state',post='$post',areacode='$areacode',phone='$phone',faxareacode='$faxareacode',fax='$fax',email='$email' WHERE id=$id");

$result = mysql_query($rs);

echo "<input type=hidden name=id value=http://www.phpbuilder.com/board/archive/index.php/$id>";
echo "Your Name:<input type=text name=name value=$name>";
echo "Company:<input type=text name=company value=$company>\n";
 
Back
Top