Jump to content

Posted field name has added backslash on it


Zinger

Recommended Posts

I'm posting from a form that has a <select> element in it.  For some odd reason, the name of the select is posted with an added backslash ("\").

 

For example:

 

<select name=field_id_lov_1"> will be posted as "field_id_lov_1\". 

 

At least this is what I'm seeing in the PHPEd debugger when I highlight the $_POST variable in my code.  Trying to access the field using $_POST['field_id_lov_1'] returns null.

 

Does anybody have any ideas?  There are other elements (none of them selects) defined on the form and their names all post properly.

Link to comment
Share on other sites

Assuming you copied that directly from your source code, might it be because of the lack of a beginning double-quote?

 

You nailed it.  I actually found this error right after I posted and I came back to post so, but good catch.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.