php - How to get the value of a dropdown menu returned by Paypal? -
i'd know how value of dropdown menu paypal.
everything works fine on paypal's side, exept fact don't know subscription members paying for.
my form follow :
<input type="hidden" name="on0" value="formula">formula <select name="os0"> <option value="basic">basic €5</option> <option value="standard">standard €10</option> <option value="vip">vip €20</option> </select>
how can grab selected value please ? guess it's :
$_post['os0']
...but doesn't work. missing please ?
any apreciated, !
i'm not sure if problem or not, if you're not using http post, values won't show in $_post['os0']
. try using $_request['os0']
instead , see if values way.
you can read more $_post , $_request @ the php docs. can read how set form submission method @ the mozilla docs:
<!-- simple form send post request --> <form action="" method="post"> name: <input type="text" name="name"> <input type="submit" value="save"> </form> <!-- form fieldset, legend, , label --> <form action="" method="post"> <fieldset> <legend>title</legend> <input type="radio" name="radio" id="radio"> <label for="radio">click me</label> </fieldset> </form>
to learn more http get , post in general, can read w3c specifications.
Comments
Post a Comment