This time it's not with a file, just with text. I have a form that had been running perfectly for a long time on v4.3.3.
Now I put it on a server that is running v4.3.6 and I get the error ...
Notice: Undefined variable: submit in D:_web\SOM\molpath\db_faculty_add.php on line 5
So I check up on that and find out that I need to use <?
$submit = $_POST['submit'];
?>
(I think)
So I put it in. But then I get the error ...
Undefined index: submit in D:_web\SOM\molpath\db_faculty_add.php on line 3
And that's where it seems no one on the web has any clue what is going on. Any ideas how to get this to work?
Below is the first bit of code in the phpSelf form.
<?php
$submit = $_POST['submit'];
if ($submit) {
include ("db_connect.php");
//$description = mysql_escape_string($description);
mysql_query ("INSERT INTO faculty (name_last,name_first,disease_interest,affiliation,header_summary,url,title,email,phone,fax,biography,research_summary,reference_key,image_source, research_image_source)
VALUES ('$name_last','$name_first','$disease_interest','$affiliation','$header_summary','$url','$title','$email','$phone','$fax','$biography','$research_summary','$reference_key','$image_source','$research_image_source')");
echo "Entry Submitted.";
mysql_close ($db);
} else {
//echo "Please Enter Information.\n";
}
?>