Hi,

this is probably a simple one for someone, but i have on my page a button rather than a text link.

when they click cancel i want it to back to my details page but pass the parameter id back.

so currently it is like this

<input type="button" name="Cancel" id="Cancel" value="Cancel"  onclick="window.location ='product_Results.php'" /></td>

However i want it to go product_Details?ProductID=..........

I tried addin this in between the '':

product_Detail.php?ProductID=".$row_rsProducts['ProductID']  ."

This did not work, can someone help adding in the productID to the product Details page in my cancel button above?

thanks

Recommended Answers

All 2 Replies

<input type="button" name="Cancel" id="Cancel" value="Cancel"  onclick="window.location ='product_Detail.php?ProductID=<?php echo $row_rsProducts['ProductID']; ?>'" /></td>

Superb!!!!

Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.