Anyone ever come across this problem before.
I have a form that edits a news story the form populates fine from the database info. And all the required processing checks pass fine. However unless I actually change the first form input field and enter completely new data the form does not process and goes to my error message for unable to process.
For example:
The title of the story may be 'News Test 2'. This is the first input field on the form. Now unless this is changed to something else. i.e. 'News Test Two' the form will not work and the database is not updated.
I am going off my box here as the code is the same for every other form input field and it works fine if you change the title to something else! Anyone come across this perculiarity before?
Code: Select all
if(isset($_POST['newstitle'])) {
if(eregi("^[a-zA-Z0-9 ]{5,50}$", trim($_POST['newstitle']))) {
$clean['title'] = stripslashes($_POST['newstitle']);
} else {
$clean['title'] = FALSE;
$msg .= '<p class="text"><font color="red">Please enter the news title!</font></p>';
}
} else {
$msg .= '<p class="text"><font color="red">Please enter the news title!</font></p>';
$clean['title'] = FALSE;
}