Can this java script be converted to php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jag
Forum Newbie
Posts: 1
Joined: Tue Aug 19, 2008 9:17 am

Can this java script be converted to php?

Post 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!
User avatar
lukewilkins
Forum Commoner
Posts: 55
Joined: Tue Aug 12, 2008 2:42 pm

Re: Can this java script be converted to php?

Post 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
Post Reply