
yim11
Novice
Sep 13, 2000, 5:56 AM
Post #1 of 5
(269 views)
|
|
Form processing
|
Can't Post
|
|
Hello, I have a form (on a webpage) that is processed by a perl script. The form takes users input for salary and time, and upon Submit, the script calculates how much a worker earned while on break. The form has 2 fields, hourly and salary, What I am wondering is how to tell the script to process whichever field the user fills in. In other words, if a worker is hourly then he would type his hourly wage into a field, and the script would need to ignore the salary field because it would be blank...and vice-versa. I am thinking the answer is along the lines of 'IF this field is filled in THEN do this, ELSE do something else' - but just not 100% sure how to code it. Any and all help is greatly appreciated! TIA- Jim
|