How to keep already-set GET parameter values on form submission?

后端 未结 7 871
广开言路
广开言路 2020-12-17 08:10

I have a URL : foo.php?name=adam&lName=scott, and in foo.php I have a form which gives me values of rectangleLength & re

7条回答
  •  臣服心动
    2020-12-17 08:36

    1. In menu (calling html) I call VendorSearch.php. variable fromvs is used in URL.
    2. The target php VendorSearch.php will do different jobs based on the value of $_GET['fromvs']
    3. In VendorSearch.php, aftersession_start(),

      $srchfor =""; $fromwhat = $_GET['fromvs']; $_SESSION['fromwhat'] = $fromwhat; $vs = $fromwhat;

    4. Use hidden input to store URL passed variable

    5. But this thie

    Segment in Calling html .... Add a Subcontractor

  • .... Assign Subcontractor Contracts ..... Log Out ....

    Segment in target php: VendorSearch.php

    
    
    
    ......
    .......

"; // echo "
提交回复
热议问题