Jump to content

preload form field with http://


tommr

Recommended Posts

I have a form that sends the user info to a database.

One field it URL

People are entering the url with out the http:// and when they do the script puts my domain infront of the www.

Is there a way to preload the form imput field with the http:// or is there a way to strip my url from the results.

Link to comment
https://forums.phpfreaks.com/topic/230634-preload-form-field-with-http/
Share on other sites

I assume you want to adds this http:// so you can put it in your database and output it correctly later?

If so, don't rely on value, since people could accidentally delete it. With some php you can check if the url is like you want it to be, and adjust it accordingly.

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.