So, I’ve got a multi-page form that’s been working great for months. On each page, I loop through the form scope and clean everything long before it goes to any output or the database.
[php]foreach($_POST as $key=>$value){
if ($key!=“submit”){
$value = trim($value);
$value = iconv(‘UTF-8’,‘ASCII//TRANSLIT’,$value);
$value = clean_data($value);
echo “\t<input type=“hidden” name=”$key" value="$value">\n";[/php]
For the most part - no problems here. There’s extra data type valdation right before data insert and stuff. This doesn’t seem to be my issue though.
This morning, I get a form result that instead of any data, shows the name of the field inputs AS the data. I can’t even figure out how this is possible!
So instead of:
First Name: Bob
Last Name: Smith
I’ve got:
First Name: f_name
Last Name: l_name
… which are the actual form text input NAMES.
Haven’t been able to replicate this regardless of what I do, so I’m pulling my hair out and rather concerned as well. That fact that it’s been working great for months makes me think it’s a temporary server issue (shared server).
In theory, other than a server issue, can anybody think of anything else that would give me this result? Even if a server issue, how?
Ideas?