Jump to content

problems with & in php variable


houssam_ballout

Recommended Posts

what problems actualy you are having now when you submit?

Link to comment
Share on other sites

The login isn't working for me so I can't see the problem.There shouldn't be any problems with the & character unless Javascript is sending it unencoded.

Link to comment
Share on other sites

Just as I suspected. You're making Javascript send values. Encode the values before using them. This should be in your reload2() function:var val = encodeURIComponent( form.tag.options[form.tag.options.selectedIndex].value );var val2 = encodeURIComponent( form.product.options[form.product.options.selectedIndex].value );Your login system has an error. A warning appears in the source code right after logging in:

<b>Warning</b>:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <b>/home/metrolb/public_html/vendor/order.php</b> on line <b>417</b><br />

Link to comment
Share on other sites

Just as I suspected. You're making Javascript send values. Encode the values before using them. This should be in your reload2() function:var val = encodeURIComponent( form.tag.options[form.tag.options.selectedIndex].value );var val2 = encodeURIComponent( form.product.options[form.product.options.selectedIndex].value );Your login system has an error. A warning appears in the source code right after logging in:
<b>Warning</b>:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <b>/home/metrolb/public_html/vendor/order.php</b> on line <b>417</b><br />

Thanks it worked :)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...