percept
01-16-2004, 07:05 AM
Hello, I've been reading and reading trying to figure out what my best bet is for making checkbox and radio button values into variables and just simply pass them to a php script to email those only with values. The more i read the more I get confused as this seems to be a complex issue when getting into arrays and such.
My Php is very, very beginner level. However, I'm thinking for what I need to do it could be quite simple. I would prefer to stay away from arrays for now until I have time to practice my code and get more advanced with it.
My form is for an on-line job application. The radio buttons and one text field (for other comment) are a list of how the user found out about the position.
The list of checkboxes are for the level of education the user has (therefore they can check more than one)
Then I take these values from the form along with along with some other variables (but these are straight forward text values and file uploads) and pass them to my php script to email them to the recipient.
Where I stumble is:
1) I have a list of 8 radio buttons for choices and 1 text field as an "other" option if their answer isn't a radio button. So on my php script I don't want to send all variable values in email because all but one would have no value. How would I instruct the script to know which one to send?
2) I have a list of checkboxes where any, all or none may be checked. Is there a rookie (very easy) way of sending the checked ones only in the email without getting into arrays? or is there a "beginners" level array function I can understand?
I have named each radiob and ckbx uniquely if this helps
Thank you for any help/suggestions/examples/etc...
My Php is very, very beginner level. However, I'm thinking for what I need to do it could be quite simple. I would prefer to stay away from arrays for now until I have time to practice my code and get more advanced with it.
My form is for an on-line job application. The radio buttons and one text field (for other comment) are a list of how the user found out about the position.
The list of checkboxes are for the level of education the user has (therefore they can check more than one)
Then I take these values from the form along with along with some other variables (but these are straight forward text values and file uploads) and pass them to my php script to email them to the recipient.
Where I stumble is:
1) I have a list of 8 radio buttons for choices and 1 text field as an "other" option if their answer isn't a radio button. So on my php script I don't want to send all variable values in email because all but one would have no value. How would I instruct the script to know which one to send?
2) I have a list of checkboxes where any, all or none may be checked. Is there a rookie (very easy) way of sending the checked ones only in the email without getting into arrays? or is there a "beginners" level array function I can understand?
I have named each radiob and ckbx uniquely if this helps
Thank you for any help/suggestions/examples/etc...