FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Help with regex
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Help with regex [message #184958 is a reply to message #184954] Wed, 19 February 2014 18:48 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 2/19/2014 10:17 AM, knal wrote:
> Hi Christoph,
>
> Thanks for your reply.
>
> I am aware of the security issues, but the users are part of a restricted group submitting to a restricted part of the website.
> I do however filter the input for SQL injections etc, just to be sure.
>
> Could you please give a little more direction on the DOM?
>
> Thank you in advance.
>
> Kind regards,
> John Knal Peters,
>

Knal,

Check out http://www.php.net/manual/en/book.dom.php. PHP's DOM can be a
bit complicated at first, but you can catch on. Despite the comments,
it works with HTML, also. And it will be a whole lot easier than trying
to parse HTML yourself.

If the HTML is well-formed, you might try the simpleXML extension
(http://www.php.net/manual/en/book.simplexml.php), but I've found it
doesn't deal well with malformed input; the DOM extension does much better.

P.S. Don't mind "Pointed Head". He's just being his usual pedantic
self. He gets this way when someone asks a question he doesn't
understand (which seems to be pretty often).

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Career Opportunities in Singapore (PHP Tech Lead)
Next Topic: PHP script to get name of file which houses the script?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 16:47:51 GMT 2024

Total time taken to generate the page: 0.04396 seconds