this is my form
<form name="updateCustomer" method="GET" action="$_SERVER['PHP_SELF']"> <td align="center"><input type="text" name="customer_name" id="customer_name" size="25" value=""/></td> <td><input type="hidden" size="10"/></td> <td align="center"><input type="text" name="customer_address" id="customer_address" size="25" value=""/></td> <td><input type="hidden" size="10"/></td> <td align="center"><input type="text" name="customer_contact_no" id="customer_contact_no" size="12" value=""/></td> <td><input type="hidden" size="10"/></td> <td align="center"><input type="button" name="addCustomer" value="addCustomer" onclick="add(this);"/></td> <td><input type="hidden" size="10"/></td> <td align="center"><input type="button" name="deleteCustomer" value="deleteCustomer" onclick="del(this);"/></td> </form>
and this is the variable used to append the data to the url which is giving me a syntax error.
var poststr=""; poststr += document.updateCustomer.customer_name.name + "=" + document.updateCustomer.customer_name.value + &document.updateCustomer.customer_address.name + "=" + document.updateCustomer.customer_address.value + &document.updateCustomer.customer_contact_no.name + "=" + document.updateCustomer.customer_contact_no.value;
can someone point out the error(s)?
rpjd

New Topic/Question
Reply



MultiQuote




|