Jump to content

Stripping Characters


Recommended Posts

I have a web form that allows user to upload there website address(URL) to a database.

 

My problem is, all website addresses must be formatted in the same way. i.e., "http://www.domainname.com"

 

Anthing after ".com" doesn't matter. and really all that matters is that "http://" comes before anything else.

 

Anyone have any ideas? I know I will probably need some sort of if command that will check to see if http:// is present, if it is, allow form to post, if not, add it...

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/109454-stripping-characters/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.