Re: [PHP] php to generate java-script

2007-08-26 Thread Richard Lynch
If you want to capture the output of your current script, toss ob_start() at the top and $data = ob_get_content() at the bottom and then munge it as you will. Though I also think you'd be better off putting the JS validation in-line with the Anyone have a good method of grabbing the current page

Re: [PHP] php to generate java-script

2007-08-21 Thread Nathan Nobbe
i agree with brian. i still need to enhance my skills w/ javascirpt, but i think in the case of validation, a simple solution is to write generic validation components in javascript. then simply dynamically include the ones you need for a particular form. as far as the javascript knowing how to lo

Re: [PHP] php to generate java-script

2007-08-21 Thread brian
Jas wrote: Anyone have a good method of grabbing the current page and reading data from it? For example: http://php.net"; ); ?> The above code would output the following: Array ( [0] => [1] =>http://"; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ); ?> Not only does it

[PHP] php to generate java-script

2007-08-21 Thread Jas
Anyone have a good method of grabbing the current page and reading data from it? For example: http://php.net"; ); ?> The above code would output the following: Array ( [0] => [1] =>http://"; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ); ?> Not only does it take a helluv