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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.