Javascript or PHP?

jaydeee's Avatar, Join Date: Aug 2011
Go4Expert Member
Hi everyone

I am a week old Javascript and PHP self learner and a bit confused.

I am trying to make a web application "Visitor Appointment System" with following features:
1. Receptionist/visitor will register visitor details and contact person.
2. There will be a dashboard what will list all active visitors for the day.
3. Visitors that had waited for more than 15 minutes will be highlighted. So there will be a minute counter visible in the dashboard for all users that will trigger the highlighting function.
4. Contact person from the whole company may put notes or accept the visitor.
5. Report to be generated every end of the week listing all visitors per day.

So here is my queries.
1. how/what to use for minute counter feature.
2. will I use javascript or php for this projects?

Your inputs are highly appreciated.
Thanks.
0
jaydeee's Avatar, Join Date: Aug 2011
Go4Expert Member
any comments or suggestion?
thanks
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Your question is on JavaScript and PHP and you have posted this forum under JSP and expecting a reply. Isnt that a bit too much?

Moved your thread to PHP forum
0
jaydeee's Avatar, Join Date: Aug 2011
Go4Expert Member
hi shabbir,
forgive me, did not noticed that.
thanks for moving this thread.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
For minute counter feature it has to be PHP and you should store the value of the visitor's entry in database and then cron should verify and update the status.
0
Scripting's Avatar, Join Date: Jun 2010
John Hoder
Yeah, as Shabbir already said, PHP is needed for this to be done, and some SEQEL language would be also useful.
0
hanleyhansen's Avatar, Join Date: Jan 2008
Pro contributor
Javascript or PHP? You need both. Javascript is browser-side scripting why PHP is server-side scripting. You need a combination of the two to elegantly accomplish what you want.
0
Scripting's Avatar, Join Date: Jun 2010
John Hoder
Quote:
Originally Posted by hanleyhansen View Post
Javascript or PHP? You need both. Javascript is browser-side scripting why PHP is server-side scripting. You need a combination of the two to elegantly accomplish what you want.
Ehm...? You don't need JS, it just mostly used for design ... For proper function you will just need PHP.
0
hanleyhansen's Avatar, Join Date: Jan 2008
Pro contributor
Ehmm...? No. Wrong. Javascript is not used mostly for design. Look at his project objectives. Maybe he doesn't want to POST and GET for every single little thing. Maybe he doesn't want to have to refresh the browser for every single little thing. PHP is SERVER SIDE. The most elegant solution would be a good balance between PHP and Javascript. They are used together all the time. It's actually very common if not a norm. Of course, where to use which will be decided as he goes along when he figures out exactly how he wants to do each thing but best practice is to use a good combination of both.
0
Scripting's Avatar, Join Date: Jun 2010
John Hoder
Quote:
Originally Posted by hanleyhansen View Post
Ehmm...? No. Wrong. Javascript is not used mostly for design. Look at his project objectives. Maybe he doesn't want to POST and GET for every single little thing. Maybe he doesn't want to have to refresh the browser for every single little thing. PHP is SERVER SIDE. The most elegant solution would be a good balance between PHP and Javascript. They are used together all the time. It's actually very common if not a norm. Of course, where to use which will be decided as he goes along when he figures out exactly how he wants to do each thing but best practice is to use a good combination of both.
Yes, you are right, JS is good for this, (I havent said it isnt), but its not necessary(as you said too). Thats all.... Peace