First thing I'd check is you have all the (, ), " & ' closed. Sounds like a syntax error. My php is fairly rusty.
Hi guys
Just need a bit of a hand with a php script... its basically a form mailer.. everything is setup it just appears that when using multiline text in a textarea box on the form the validation fails saying invalid characters... even though it is meant to ignore them....
Any help would be appreciated!
Thanks
Steve
First thing I'd check is you have all the (, ), " & ' closed. Sounds like a syntax error. My php is fairly rusty.
MY15 Discovery 4 SE SDV6
Past: 97 D1 Tdi, 03 D2a Td5, 08 Kimberley Kamper, 08 Defender 110 TDCi, 99 Defender 110 300Tdi[/SIZE]
Hi DM
I have got round it by removing the \n \r out of the validation checks.. unfortunately i would like to get them back... as im sure they are there to stop spam usage of the script...
is your php rustier than my complete incompetence at code?im new to all this and am bumbling my way through!
Thanks
Steve
\n and \r are control characters that tell what ever displays the text to add in a new line. Depending on how your script looks at your text as to weather it sees them as escape characters or as string charaters. try changing your validation script from looking for escape charaters:
'\n' = newline (LF)
'\r' = carriage return (CR)
to looking for a \ character and a letter with '\\n' and '\\r' the leading backslash (\) cancels out the slash as a start of a escape character and makes it a regular backslash.
Hope that helps.
Better off on a php forum...
Either way, you are going to have to post up some code. Bit hard to figure out if it is a syntax error or something else without seeing the code.
| Search AULRO.com ONLY! |
Search All the Web! |
|---|
|
|
|
Bookmarks