Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2083

Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bbcode.php on line 2083
asp.net url variables to populate form fields and/or auto submit
Results 1 to 2 of 2

Thread: asp.net url variables to populate form fields and/or auto submit

  1. #1
    Junior Registered
    Join Date
    Nov 2010
    Posts
    1

    asp.net url variables to populate form fields and/or auto submit

    I have a shortcut on my desktop to a login page for a website I use quite often. Every time I go there I have to reenter my user name and password.

    The desktop URL shortcut I have is
    HTML Code:
    http://domain.com/service/Login.aspx
    I’ve tried adding the following changes
    HTML Code:
    http://domain.com/service/Login.aspx?username=ckimball&password=joshua1
    But this doesn’t auto populate the fields on the website when it loads. Is there something special I need to do so the webpage will fill in the fields on the form?

    Also bonus if I could just auto submit to login so I don’t need the page to load and have me click “login” but I don’t think that’s possible… or is it?

    Any help is greatly appreciated.

  2. #2
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    This depends on the programming of the website in question. It would be possible for the website to be programmed in such a way to allow you to automatically enter your login information via the URL as you have tried, but it doesn't sound like this website is programmed for that. Assuming you have the right variable names (they aren't always literally "username" and "password").

    The one thing you could do is make an HTML page stored locally on your computer and include a copy of the HTML form from your target website and then, in the copy on your company, prepopulate the form as desired.

    Code:
    <form method = "post" action = "the-target-url-from-the-website">
    <input type = "text" name = "username" value = "ckimball">
    <input type = "text" name = "password" value = "joshua1">
    <input type = "submit" name = "submit" value = "Submit">
    </form>
    Even this might not work. They may have a hidden form field variable (you could see that in the source code though) or might check session information for the HTTP_REFERER which needs to match their site.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

Similar Threads

  1. Create a Form and Submit
    By connelly73 in forum HTML, CSS, Layout, and Design
    Replies: 11
    Last Post: 02-13-2010, 08:53 AM
  2. Submit a form (POST) via PHP.
    By Chris in forum Website Programming & Databases
    Replies: 5
    Last Post: 09-03-2007, 05:36 AM

Bookmarks

Posting Permissions

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