Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to Submit form On Server process

How to Submit form On Server process

Scheduled Pinned Locked Moved ASP.NET
javascriptphpsysadmintutoriallearning
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Britney S Morales
    wrote on last edited by
    #1

    Guys, I have this javascript function function validate() { form_intranet.login_username.value = form_intranet.txt_user.value; form_intranet.secretkey.value = form_intranet.txt_password.value; form_intranet.action = "http://aaa.bbb.ccc.ddd/webmail/src/redirect.php"; form_intranet.submit(); } i want a server side process who have the same behavior... :confused: Thanks <div class="ForumSig">keep Learning and you never will be out of date...</div></x-turndown>

    P I E 3 Replies Last reply
    0
    • B Britney S Morales

      Guys, I have this javascript function function validate() { form_intranet.login_username.value = form_intranet.txt_user.value; form_intranet.secretkey.value = form_intranet.txt_password.value; form_intranet.action = "http://aaa.bbb.ccc.ddd/webmail/src/redirect.php"; form_intranet.submit(); } i want a server side process who have the same behavior... :confused: Thanks <div class="ForumSig">keep Learning and you never will be out of date...</div></x-turndown>

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      pls could u tell why u need that kind of thing. it's possible to this script in pagestartup or button.addattribute(). but i don't understand what u exactly need. :confused:

      Parwej Ahamad

      g_parwez@rediffmail.com

      B 1 Reply Last reply
      0
      • B Britney S Morales

        Guys, I have this javascript function function validate() { form_intranet.login_username.value = form_intranet.txt_user.value; form_intranet.secretkey.value = form_intranet.txt_password.value; form_intranet.action = "http://aaa.bbb.ccc.ddd/webmail/src/redirect.php"; form_intranet.submit(); } i want a server side process who have the same behavior... :confused: Thanks <div class="ForumSig">keep Learning and you never will be out of date...</div></x-turndown>

        I Offline
        I Offline
        indianet
        wrote on last edited by
        #3

        String postedData = "login_username=login_username_value&secretkey=secretkey_valueOk"; StreamWriter out = null; HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://aaa.bbb.ccc.ddd/webmail/src/redirect.php"); request.ContentType = "application/x-www-form-urlencoded"; request.ContentLength = postedData.Length; request.Method = "POST"; out = new StreamWriter(request.GetRequestStream()); out.Write(postedData); out.Close(); login_username_value & secretkey_value should be replaced with actual values

        1 Reply Last reply
        0
        • P Parwej Ahamad

          pls could u tell why u need that kind of thing. it's possible to this script in pagestartup or button.addattribute(). but i don't understand what u exactly need. :confused:

          Parwej Ahamad

          g_parwez@rediffmail.com

          B Offline
          B Offline
          Britney S Morales
          wrote on last edited by
          #4

          I want to read two vars from one form and to use the submit form to send the vars to http://address.. :)

          keep Learning and you never will be out of date...

          1 Reply Last reply
          0
          • B Britney S Morales

            Guys, I have this javascript function function validate() { form_intranet.login_username.value = form_intranet.txt_user.value; form_intranet.secretkey.value = form_intranet.txt_password.value; form_intranet.action = "http://aaa.bbb.ccc.ddd/webmail/src/redirect.php"; form_intranet.submit(); } i want a server side process who have the same behavior... :confused: Thanks <div class="ForumSig">keep Learning and you never will be out of date...</div></x-turndown>

            E Offline
            E Offline
            ednrgc
            wrote on last edited by
            #5

            Britney S. Morales wrote:

            i want a server side process who have the same behavior

            By the same behavior, do you mean you want to have it rewritten on server side? Or do you mean you want to generate the javascript from the server? If it's the former, I would place the values in Session vars. Then use Server.Transfer or Response.Redirect

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups