Gossamer Forum
Home : Products : Links 2.0 : Customization :

REAL URL validation in submission form

Quote Reply
REAL URL validation in submission form
Hmmm, a search for this topic did not exactly show anything on my line, so i ask here.

I just came across an interesting way to check if an URL that a submitter has entered into the URL submission box of the submission form does actually exist.
Meaning it doesn't just check for things like "http://" or any .something, it actually tests the entered URL once the "send" button is pressed.
Very useful against tipos and abusive play arounds i find.
trouble so far is that it is written in PHP, but looks like it's pretty much the same coding then in CGI - but looking through ad.cgi and links.cfg i could not find any section that i could indicate as doing the input check on the form when it's submitted.

Could anyone please point out to me where i find that piece of code to try and play around with my new piece????
Quote Reply
Re: [gossy] REAL URL validation in submission form In reply to
Part of the checking is in links.def, but mostly it's in db_utils.pl, sub validate_record.

PHP is pretty similar to perl, so you should be able to adapt it.


Leonard
aka PerlFlunkie