I have a form that runs a php file that stores data to a wp database however after it runs the php file I need to top function as a paypal button. The code is this at the moment:
<form id="candle-form" action="<?php bloginfo('template_directory');?>/db-submit.php" method="post">
....form body (works properly)
</form>
basically I need to run action="https://www.paypal.com/cgi-bin/webscr" after the php function so that the user can checkout with paypal. Is there any way to do this? I tried redirecting with Location: at the end of the php file but then the paypal link just goes to paypal.com and doesn't retain the form's info