Hey everyone, I have some Javascript that gathers environmental variables and need to use PHP to parse this data and put it into a database. Can anyone help me with parsing in PHP? Thanks! 🙂 Kim
to put the js values in hidden form varaibles and submit to a php page....
Take a look at these links: http://www.php.net/manual/en/function.preg-replace.php http://www.php.net/manual/en/function.ereg-replace.php
Some other helpful functions: http://www.php.net/manual/en/function.sql-regcase.php http://www.php.net/manual/en/function.eregi-replace.php http://www.php.net/manual/en/function.strip-tags.php http://www.php.net/manual/en/function.htmlspecialchars.php http://www.php.net/manual/en/function.htmlentities.php http://www.php.net/manual/en/function.stripslashes.php
Hope that helps! Perhaps you could be a little more specific with what kind of parsing you are trying to do to the variables?