ok sorted my button new problem though
i get an invalic character error when i view my page because im using \ to escape the quotes in the onclick function of my button which i usse to open an url heres the button code:
"<INPUT type=\"button\" value=\"Purchase\" onClick=\"window.location=\'http://www.global-european.com/items/itemdbupdate.php?id=$id&code=$code&itemid=$itemid\'\">";
how can i escape the quote but not get an invalid character error?