Ok, mysql wont let my users post this charecter ' (don't) in the textarea...
So whats the best what to ad a remove ' string to my php witch send the info to the database?
here is the info in the text area
<textarea name="aboutme" cols="25" rows="10" wrap="virtual" id="aboutme"></textarea>
It submits to my creatmember.php where it checks for errors "no email no user id" so on, then inserts the data.
I tried java script but onlt seems to work on tex feilds not textarea...
And i cant leave it like that, it says saved user but never send the sql info...
Use mysql_real_escape_string() to allow users to use " ' " in there posts.
Do not trust javascript, you're sql my be open to injection with the code you provided above.
Originally Posted by temp.user123
You know... You're not so smart. Do you need me to educate you?
If you say, "please," (and do so, nicely) then I will show you where you're dead wrong.
kk, but how do i use that code? mysql_real_escape_string()
do i ad it to the php <? mysql_real_escape_string() ?> or othere please help me i have no clue lol
mysql_query("INSERT INTO myTable (`myField`) VALUES ('".mysql_real_escape_string($myValue)."')");
Like that.
Originally Posted by temp.user123
You know... You're not so smart. Do you need me to educate you?
If you say, "please," (and do so, nicely) then I will show you where you're dead wrong.
You know... You're not so smart. Do you need me to educate you?
If you say, "please," (and do so, nicely) then I will show you where you're dead wrong.
Kool thanks, i just tested it, after i removed the javascript in the header and it worked!
I posted: Most post don't allow ' / @ (" in this form... and it saved in only 1 second better than the 12 seconds it was taking!
Your the best thanx
Sorry you had to help so much but i am still learning so it takes me a while lol.
Plus school and chors takes most of my time.
Glad I could help, also replied to your other post.
Originally Posted by temp.user123
You know... You're not so smart. Do you need me to educate you?
If you say, "please," (and do so, nicely) then I will show you where you're dead wrong.
Bookmarks