This is what I'm asking for:
<input type="hidden" name="custom" ...
Assuming a numerical value for the option (1, 2, 3, etc.), please finish the line. Let's say the name of the option is "myOption". What I specifically don't understand is, if the name is "custom", then where do I put the text "myOption" to specify the variable name?
Similarly,
if ($_POST['custom'] == ...
Assuming the "myOption" option I specified in the <input> field, how to I check for the variable "myOption", and get its value? Please finish the line.
I know this seems trivial but I want to make sure I understand how to match up the option for these two things. There isn't a specific example for the variable/value of a custom field, even on PayPal's site.
So you see, I am only asking for 2 lines. 1 line each right?
To put it another way, in pseudocode, this is what I am looking for:
if (myOption == 1) { // generate product key with no custom license field}else if (myOption == 2) { // generate product key with custom license field}else if (myOption == 3) { // edit existing product key to add custom license field}
I just don't understand how to set and get the variable and its value using HTML/PHP syntax.