Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3661302
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:17:27+00:00 2026-05-19T01:17:27+00:00

How can you make a form be able to fill a field with the

  • 0

How can you make a form be able to fill a field with the url?

Example: if i have two fields, username and password, and my form is located at form.html how can I make form.html?username=example automatically fill in “example” in the username field.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T01:17:27+00:00Added an answer on May 19, 2026 at 1:17 am

    The form would have to read variables from the URL and parse them, and then repost those values into a field. For instance, with PHP, it would be:

    <?php $sName = $_GET['name']; ?>
    ...some HTML goes here...
    <input type="text" id="name" name="name" value="<?= $sName ?>" size="60" />
    

    This can also be done in jQuery by using location.href value to get the full URL, then split the URL into parts a few times with the split() function, and then use $(‘#name’).val(sName) in jQuery to post the value into that field.

    However, there are several security implications you have to consider. It is no longer advisable any more to take a raw GET value without running it through some XSS prevention steps:

    http://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet

    Here’s something that malicious people may use against a site that works with raw GET values:

    http://ha.ckers.org/xss.html

    So beware.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to make a simple html form where a person can upvote or
How can I make my already running C# Windows Form Application be able to
So GET forms make the usual urls like .../search/?q=apple Can you make a form
i am trying to make a c# WPF form where i can drag it
Can someone tell me how I can make the following output? I have a
I know that by implementing iterable you can make an object able to be
We have an Oracle BPM 10g activity that: Reads a form-fill protected Word document
I have a jar. I want the jar to be able to make a
Background info I have an app where users can make microsites ala http://myname.the_app.com .
Is there any way I can make a dropdown submit a form without clicking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.