I'm putting together a VERY simple time tracking widget to embed into my companies homepage. It's going to be broken down by individual offices and I'm formatting it as a drop-down box with no more than ten employees in it and two buttons (clock-in and clock-out) the problem is that I'm not sure how to make this same field work with both of these buttons. Can anybody give me some guidance on how to format the form so that it can use either of the submit buttons?
OlyComputers
110
Practically a Master Poster
Recommended Answers
Jump to PostThey don't have to be submit inputs, they can be button tags which set a field to say clockin or clockout and then submit the form though you could do exactly the same thing with submit inputs
Jump to PostThe problem is that, in my experience in input forms, you have to designate which PHP component it will use in the "form action" field, but I'm using two different PHP actions.
Maybe there's a way to use the clock-in and clock-out buttons as a sort of "toggle" inside the …
All 5 Replies
ShawnCplus
456
Code Monkey
Team Colleague
OlyComputers
110
Practically a Master Poster
ShawnCplus
456
Code Monkey
Team Colleague
OlyComputers
110
Practically a Master Poster
ShawnCplus
456
Code Monkey
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.