Jump to content
Larry Ullman's Book Forums

Recommended Posts

I've only read the first section and already I'm finding this chapter very useful. 2 questions:

 

1. I've created the spam_scrubber function to use on one of my own forms and during testing the characters \r and \n instead of being replaced by spaces are preceded by an additional slash. $0a and %0d are being replaced by spaces as anticipated. Any suggestions?

 

2. when tabbing to the comments box of the form, the cursor goes to the middle of the first line rather than the start of the first line. this also happens when i test for the condition when name and email are completed but the comment field is not. What do I need to do to have the cursor appear at the start of the comment block. I know this is not strictly a php question, but if you have any suggestions it would be appreciated.

Link to post
Share on other sites

Thanks for the nice words. Can you confirm what version of PHP you're using and whether Magic Quotes is enabled?

 

As for the second question, I think this is a CSS issue, which perhaps has come up in this forum (or the old forum) before, but I don't recall the solution offhand.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...