Now I see what you want, the real problem would be select boxes and radio buttons, the others would be quite easy. looks like a job for preg_replace_callback() and the worlds ugliest case statement:-) Have you got a good sample form I could play with? It would be quite a class. I assume you have access to the original form :)
No, he wants it to work with ANY form :)
--- Justin French http://indent.com.au
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php