window.location=pp+"?username="+getCookie("username")+"&userid="+getCookie("userid");

Replace

document.write("<form action="+pp+" method=post name=formx1 style='display:none'>");
document.write("<input type=hidden name=username value='"+getCookie("username")+"' />");
document.write("<input type=hidden name=userid value='"+getCookie("userid")+"' />");
document.write("</form>");
document.formx1.submit();

Front desk technology -- adopt javaScript More articles about submitting forms

  1. Javascript Submit Form

    <form action="login.do?act=login" method="post"> <input type="subm ...

  2. 159 , Packaging Library --JavaScript, Form serialization combined with ajax Submit data

    Packaging Library --JavaScript, Form serialization combined with ajax Submit data Packaging Library , Form serialization method /** xu_lie_biao_dan() Method , Form serialization method , The fields in the specified form will be obtained automatically name Values and va ...

  3. 154 , Packaging Library --JavaScript, Form validation -- Submit validation

    Packaging Library --JavaScript, Form validation -- Submit validation All required items in the form will be , Make a judgment function , Returns a Boolean value when filled in correctly Finally, on submission , Judge whether each item is correct , All right Submit html <div id= ...

  4. 【 summary - The front desk sends and the back desk receives forms 】MVC Four ways to submit a form

    https://www.cnblogs.com/chenwolong/p/Form.html#commentform There are three methods for background controller to receive foreground form parameters : One . General parameter HTML label name And parameter names ...

  5. js Prevent carriage return (enter) Key to submit the form and javascript in event.keycode

      How to prevent carriage return (enter) Key to submit the form , It's very simple , Just a word .onkeydown="if(event.keyCode==13)return false;" Write this sentence in from In the label ...

  6. JavaScript Use button Submit Form

    <form action="test.html" method="POST"> <input type="button" ...

  7. Project summary 15:JavaScript Simulation form submission ( Realization window.location.href-POST The effect of submitting data )

    JavaScript Simulation form submission ( Realization window.location.href-POST The effect of submitting data ) the front 1- In specific project development , use window.location.href Method to download the file , because windo ...

  8. use JavaScript The form can be submitted automatically by pressing enter

    JavaScript Implementation form form1 Press enter to submit automatically. The code is as follows : <script type="text/javascript"> function submitMe() ...

  9. Javascript Block form submission

    Javascript Block form submission Html 1.<form name="loginForm" action="login.aspx" method=&qu ...

Random recommendation

  1. I am for NET Crazy group welfare : Some common Google browser plug-ins

    Against the sky Library :http://www.cnblogs.com/dunitian/p/5734677.html Commonly used tools :http://www.cnblogs.com/dunitian/p/5640147.h ...

  2. pageX、clientX、screenX、offsetX、layerX、x

    Reference resources :http://www.cnblogs.com/xesam/archive/2011/12/08/2280509.html chrome: e.pageX-- Coordinates relative to the whole page e.layerX-- ...

  3. IDEA plug-in unit

    Key Promoter Shortcut key prompt plug-in , Help you remember shortcut keys quickly . When you use the mouse to complete a function , It will indicate that there is a corresponding shortcut key to complete the function just now , At the same time, it guides you to set up shortcut keys for frequently repeated operations . SerialVersionUID ...

  4. Angular2 Components

    1. Component description Angular2 Components are made up of Angular2 The core part of the application ,Angualr2 An application is essentially a component tree ,Angular2 Components are generally made up of modules , annotation , Metadata and component classes , Implement component classes ...

  5. StatisticalOutlierRemoval Source code

    Source code * * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org ...

  6. Windows 8.1/Server 2012 R2/Embedded 8.1 with Update 3(MSDN The latest version )

    Microsoft was founded 12 month 16 It's updated to include Update 3 Of ISO, This update will not significantly improve the user interface experience , Please check after downloading MD5. I've sorted out . In English, 8.1/ Server Edition / Embedded version / Multi language pack . 1,Windows 8.1 ...

  7. Direct2D Development : Texture blending

    Reprint please indicate the source :http://www.cnblogs.com/Ray1024 One . summary We all know Direct2D You can load and display images , But I don't know if you ever thought about , This 2D Is texture blending possible with our graphics engine ? If ...

  8. C# according to IP Address get city

    using System; using System.IO; using System.Net; using System.Text; using System.Web.Script.Serializ ...

  9. turn : The basic concept of video compression (x264 Unzip the package )

    The first 1 page : Preface —— Video compression is everywhere H.264 Or say MPEG-4 AVC Is the most widely used HD video coding standard , And the last generation MPEG-2.h.263/MPEG-4 Part4 comparison , Its compression ratio is greatly improved , example ...

  10. JavaScript arguments An array of class

    1. What is a class array arguments Is a class array object . The representative passed on to a function Parameter list for .   Let's give you an example . function printArgs() { console.log(argu ...