Jump to content

problems with & in php variable


Recommended Posts

what problems actualy you are having now when you submit?

Link to post
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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...