Hi there guys, on the form page, I generated a random 4 digit number. I then appended that number to the beginning of my html form elements, so: using so output would be random 4 digit + testtext output: 1234testext I got that part figured out just fine. My problem is that when submitting the form it has to begin with letter because im trying to parse a textarea and limit it (long explanation), i want to add a letter im trying this which should output: x1234testext but it does not work i get this error so meaning the letter i put which is x doesnt show up, hope someone here get what i was trying to say. its hard for me to explain since im new to php. Pls help.
Maybe try this $testtext = mysql_real_escape_string (strip_mq_gpc (substr ($_POST[$_SESSION['AS_seed'].'testtext'], 0, 2000))); Then append x to $testtext; $testtext = 'x'.$testtext; Little John
Since you've added 'x' to the form object, don't you think you should put the 'x' preceding the index in the $_POST variable? i.e: $testtext = mysql_real_escape_string (strip_mq_gpc (substr ($_POST['x'.$_SESSION['AS_seed'].'testtext'], 0, 2000))); PHP: