You will not have access to the $_POST["comment"] variable until the
form is submitted.
Understood. That debug test only worked after submitting the form.
So maybe the better way is to just submit the form with the action file simply reloading the main page to refresh it then put my code below with an if statement checking if the form has been submitted yet and clearing $_POST when I'm done.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php