Hey,
I'm thinking this is something simple, as I'm a PHP/Web Dev newb, been asked to develop an app for work, so I'm stumbling my way through this, any how, I get the error:
Notice: Undefined index: Scales in C:\wamp\www\TS\ upload.php on line 31
Here is a bit of the code that declares it:
And the code in the upload.php file that calls it trying to upload it to the DB:
Calling it into a variable:
Uploading to DB:
I have a bunch of fields working this way, most work, and about 4 of them are giving the same error as above.
Any ideas?
I'm thinking this is something simple, as I'm a PHP/Web Dev newb, been asked to develop an app for work, so I'm stumbling my way through this, any how, I get the error:
Notice: Undefined index: Scales in C:\wamp\www\TS\ upload.php on line 31
Here is a bit of the code that declares it:
Code:
<p></p></div> <p> </p> <p> <strong>Scales:</strong></p> <p> <textarea rows="6" cols="50" name="Scales"></textarea> </p> <p> <strong>Comments:</strong></p> <p> <textarea rows="6" cols="50" name="Comments"></textarea> </p> <p>
And the code in the upload.php file that calls it trying to upload it to the DB:
Calling it into a variable:
Code:
$Scales = $_POST["Scales"];
Code:
if ( !( $database = odbc_connect( "tradespend", "chrisbwamp",""))) die( "Could not connect to database" ); $headerSQL = odbc_prepare($database, "INSERT INTO WebForm (Action,WebID,StartDate,EndDate,RequestType,TSH1,TSH2,TSH3,TSH4,SoldTo,CustomerType,EndUserNames,Scales,Comments,Status,EnteredBy) VALUES('$action','$WebID','$sdate','$edate','$RequestType','$TSH1','$TSH2','$TSH3','$TSH4','$SoldTo','$CustomerType','$EndUserNames','$Scales','$Comments','$Status','$EnteredBy');" ); if (!odbc_execute( $headerSQL)) { /* error */ echo "<h1>Insert of Header data has failed! Please contact IThelpdesk@pintys.com and reference Chris Beach</h1>"; //break; }
Any ideas?
Comment