adrianmak Posted April 16, 2016 Posted April 16, 2016 Submission form <?php $content = ''; $out = ''; $out .= "<div class='row'>"; $out .= "<div class='col-xs-12'>"; $out .= "<form id='payment-method' method='POST' action='/setexpresscheckout' role='form'>"; $out .= "<div class='radio'>"; $out .= "<label><input type='radio' name='payment_method' value='paypal' checked='checked'>Paypal</label>"; $out .= "</div>"; $out .= "<div class='radio'>"; $out .= "<label><input type='radio' name='payment_method' value='creditcard'>Credit Card</label>"; $out .= "</div>"; $out .= "<div class=''>"; $out .= "<input type='submit' value='Checkout' class='btn btn-success btn-lg' name='checkout' value='Checkout' />"; $out .= "</div>"; $out .= "</form>"; $out .= "</div>"; $out .= "</div>"; $content .= $out; The form processing template page <?php $content = ''; $content .= $input->post->payment_method; Empty/blank value from posted value If I changed the form action to self submission, i.e. $out .= "<form id='payment-method' method='POST' action='./' role='form'>"; I could get the value on the same form.
adrianmak Posted April 16, 2016 Author Posted April 16, 2016 solved by myself. There should be a trailing slash. i.e. /setexpresscheckout/
dotnetic Posted April 16, 2016 Posted April 16, 2016 Please mark your post as answered, as it would help others to see directly, that no further action is required.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now