Hi,
I wasn't clear enough, I shoud've told you how I came to my last post 🙂
The following message:
cannot insert NULL into ("SCOTT"."CIRCUIT"."CID") in
after executing:
db5 = OCILogon("scott","tiger");
$stmt5 = OCIParse($db5,"insert into circuit (cid,cname) values (:cid,:cname) ");
OCIBindByName($stmt5,":CID",$cid,4);
OCIBindByName($stmt5,":CNAME",$cname,32);
caused my last post:
It seems like $cid doesn't exist after you submit the form because Oracle compains about the NULL value. In most cases there is one reason for this.
There is a variable called register_globals in the php.ini that is set to Off per default in recent php versions for security reasons.
If that variable is set to off then you can't access the form variables as $variable. You have to do it with $POST['variable'] for security reasons (and $GET for get variables).
If you don#t want to review the complete code there is another solution. PHP has a function called extract() that takes an array as argument and makes the values globally available for using them them directly as $variable.