i have this div that i am using as a sort of button, most of the time, i just use it to redirect to another page, but this time, i want it to run some php before it redirects to the next page.
<div class="build_detail_option_ele_wrap" onclick="location.href="builders_checkout.php";"></div>
Could i just make it redirect to builders_checkout.php, which creates some sessions etc… and then from there redirect to the end page.
(I know i could do this easier through using a submit button instead, but circumstances mean i can’t use one here. )
Is this a good idea, or are there negatives to doing this?
Thanks
Since no one has actually given the (obvious) solution:
Add this to your CSS, and it won’t be visibly different: