Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Prefill in text box from hyperlink

    I would like to email a link that opens a page with a search box, but have the information pre-filled in the search box. Specifically, I would like to post a video on youtube, send an email to someone with a hyperlink to keepvid.com (a website to download videos) and have the search box pre-filled with the URL. Is there a way to make this happen?

    Thanks for your help.

    Mark.

  • #2
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,091
    Thanks
    38
    Thanked 498 Times in 492 Posts

    Question

    Quote Originally Posted by markarkark View Post
    I would like to email a link that opens a page with a search box, but have the information pre-filled in the search box. Specifically, I would like to post a video on youtube, send an email to someone with a hyperlink to keepvid.com (a website to download videos) and have the search box pre-filled with the URL. Is there a way to make this happen?

    Thanks for your help.

    Mark.
    What does the pre-filled URL look like that goes to the video clip you wish to display?

  • #3
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The site has a box to enter the url you are wishing to convert. I would like to make a hyperlink in my email that would take the user to the site but have the video url already filled in the box. The url will be different with every email, so it is something I will have to change with each email.

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,014
    Thanks
    79
    Thanked 4,435 Times in 4,400 Posts
    Depends on the site.

    No, you can't actually fill in the field in the <form> on the site.

    But if the site allows it, you could have a <form> *IN THE EMAIL HTML* that duplicates the <form> on the site, allow the user to click on its submit button, and submit the <form> to keepvid.com's search page.

    Many sites won't allow this: They insist that <form>s be posted only from within the same site (and often even from a specific page on the site).

    There are sometimes ways around this, by "spoofing" the target site, but they involve server-side coding (that is, the email link would actually go to a server-side page on your site which would spoof keepvid.com). And truly aggressive sites (e.g., google.com) have multiple ways to prevent even this from working.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •