0

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

2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by andydeans
1
<input type="button" name="Cancel" id="Cancel" value="Cancel"  onclick="window.location ='product_Detail.php?ProductID=<?php echo $row_rsProducts['ProductID']; ?>'" /></td>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.