Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Javascript or PHP? (http://www.go4expert.com/forums/javascript-or-php-t26537/)

jaydeee 20Aug2011 17:39

Javascript or PHP?
 
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.

jaydeee 21Aug2011 07:44

Re: Javascript or PHP?
 
any comments or suggestion?
thanks

shabbir 21Aug2011 10:06

Re: Javascript or PHP?
 
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

jaydeee 21Aug2011 15:25

Re: Javascript or PHP?
 
hi shabbir,
forgive me, did not noticed that.
thanks for moving this thread.

shabbir 21Aug2011 15:54

Re: Javascript or PHP?
 
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.

Scripting 22Aug2011 02:25

Re: Javascript or PHP?
 
Yeah, as Shabbir already said, PHP is needed for this to be done, and some SEQEL language would be also useful.

hanleyhansen 22Aug2011 17:45

Re: Javascript or PHP?
 
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.

Scripting 23Aug2011 01:06

Re: Javascript or PHP?
 
Quote:

Originally Posted by hanleyhansen (Post 86260)
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.

hanleyhansen 23Aug2011 02:08

Re: Javascript or PHP?
 
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.

Scripting 23Aug2011 16:17

Re: Javascript or PHP?
 
Quote:

Originally Posted by hanleyhansen (Post 86290)
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


All times are GMT +5.5. The time now is 10:13.