scotty86 Posted May 2, 2020 Share Posted May 2, 2020 (edited) Hello, first things first: Thank you for your awesome work! I came across following site: https://www.w3schools.com/php/php_form_url_email.asp You are validating the URL by regex, that's good way to learn a bit about this expressions. But PHP offers also a filter for validating URLs. if (!filter_var($url, FILTER_VALIDATE_URL)) { $urlErr = "Invalid url format"; } Might be worth mentioning. Have a nice day and stay healthy, scotty86 Edited May 4, 2020 by Ingolme Updated topic title Link to comment Share on other sites More sharing options...
scotty86 Posted May 4, 2020 Author Share Posted May 4, 2020 Sorry, have not paid enough attention and messed up the topic 😇 I couldn't find a option to edit it. Please update it to something like "PHP Forms - Validate URL" Link to comment Share on other sites More sharing options...
Ingolme Posted May 4, 2020 Share Posted May 4, 2020 Surprisingly, we get people putting their usernames as a topic title quite frequently. I don't know why. 1 Link to comment Share on other sites More sharing options...
scotty86 Posted May 5, 2020 Author Share Posted May 5, 2020 On 5/4/2020 at 7:05 PM, Ingolme said: Surprisingly, we get people putting their usernames as a topic title quite frequently. I don't know why. *Off-Topic* Ok, I'll try share my retardness. I went to the forum, to share my suggestion. I saw a "Start new topic" button and pressed it. I saw two textboxes (marked as required) and a recaptcha and a textarea I read email and title... And here comes the wrong assumption: I thought title is meant to be my nickname, since I assumed, that I first have to create an user account (typically a nickname and an email-address) and that the textarea should help me to write my topic already, before forgetting my thought. Maybe for knuckleheads like me, it would be better to have the inputs sorted: nickname, email address, captcha, title, tags, textarea. Or you automatically ban email addresses of people having the title and their nickname the same. 😉 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now