Jump to content

Question regarding input text


brownbrod

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.

 

Archived

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

×
×
  • 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.