Jump to content

Recommended Posts

Hi.   Just a quick question.

 

I have the following:

 

<input type="radio" name="q3" value="The Preliminary Reliability Prediction indicates that the Failure Rate Requirement can be achieved, there are no known blocking issues in the Primes DFR Dashboard, and the team has a plan to get to green on all DFR deliverables in the Primes DFR Dashboard

" >

 

When transferring to SQL I receive erros because of the special characters within the VALUE.     I have seen a lot of PHP codes that has a "/" before the ">" .   Example:

 

<input type="radio" name="q3" value="Resources and funding to address all Reliability efforts (e.g. HALT/ALT testing) approved and in place" />

 

What does the "/" do?   Does this allow for special characters? 

 

Is there an easy way to fix this error I receive or should I just remove the "" and () from the value?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/286270-question-regarding-input-text/
Share on other sites

The following quote is from the manual for addslashes().

 


To escape database parameters, DBMS specific escape function (e.g. mysqli_real_escape_string() for MySQL or pg_escape_literal(), pg_escape_string() for PostgreSQL) should be used for security reasons.

 

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.