Page 1 of 1

Can this java script be converted to php?

Posted: Tue Aug 19, 2008 9:22 am
by Jag
I want to convert this java script into php. I don't know java script that well, but know php more. Can this be done?

Please see example:

http://www.fcstop25.com/poll.html

It is a top 25 college poll tabulator. I just want to use the nice add and remove boxes for people to submit their poll. Everything else is done in php.

Thanks!

Re: Can this java script be converted to php?

Posted: Tue Aug 19, 2008 9:48 am
by lukewilkins
Well, PHP is server-side and JavaScript is client-side. What you are seeing there with the Add/Remove buttons is happening on the client-side and therefore has nothing to do with PHP. As I think you understand, the actual processing of those form fields can most certainly be done with PHP.

The JS for something like that is not that difficult, however. See this link for an example: http://www.mredkj.com/tutorials/tutorial_mixed2b.html