-
1 Attachment(s)
PHP to Javascript
Hey all,
I am stuck with trying to make javascript code do the same function as a php code;
I have a test page, which a client chooses answers in a radio button, the answer, dependent on the result shows a certain picture,
I have this working with StressTest.html & Results.php as included in the attached zip, I have tried the html results, but struggling to get a code similar to work, that does the same thing.
Could someone please help me :-)
-
Re: PHP to Javascript
I wonder why this is the latest trend in scripting.... Everyone seems to forget the distinction between JavaScript ( Clinet side language ) and PHP ( Server side language ).
In my opinion, when you have to "convert" code to JavaScript from PHP, it is :
1) Bad planning and design
2) Completely and utterly unecessary
3) Senseless.
Make your PHP code as such, that JavaScript an access objects from it as well - a common way of doing this is through the URL string manipulation and hidden HTML Form fileds.
-
Re: PHP to Javascript