Is there another way to submit a form with values After page redirection beside JavaScript, Ajax or jQuery? with PHP only?
e.g page alpha.php
has following example form;
<form action="beta.php" method="post" id="signupForm" class="signupForm" >
<select name="payment" class="form-control" id="payment" required="required">
<option value="">Select Payment Method</option>
<option value="PayPal">PayPal</option>
<option value="WorldPay">WorldPay</option>
</select>
</form>
after above form submission, it will take to beta.php
where after server side validation, redirect to either PayPal
or WorldPay
depend on option selected in above form,
<?php if(it's PayPal) { ?>
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="seller@domain.com">
<input type="hidden" name="item_name" value="hat">
<input type="hidden" name="item_number" value="123">
<input type="hidden" name="amount" value="15.00">
<input type="hidden" name="email" value="jdoe@zyzzyu.com">
// How to Submit it With PHP?
</form>
<?php } else if (it's Worldpay) { ?>
<form action="https://secure-test.worldpay.com/wcc/purchase" name=BuyForm method=POST>
<input type="hidden" name="instId" value="211619">
<input type="hidden" name="cartId" value="WorldPay Test page">
<input type="hidden" name="desc" value="">
<input type="hidden" name="M_subject" value="WorldPay example">
<input type="hidden" name="testMode" value="100">
// How to Submit it With PHP?
</form>
<?php } ?>
Is it possible or not?