我有一个页面,我在其中推送信息以使用POST,我想使用GET方法将页面上的信息重定向到另一个URL
这是我当前的代码:
dep_date_day_button = browser.find_element_by_xpath(".//table[@class='BpkCalendarGrid_bpk-calendar-grid__3AlVL FlightDatepicker_fsc-datepicker__list-size__zQzUm']")
dep_date_day_button.click()
dtd0_button = dep_date_button.find_element_by_xpath(".//button[contains(@class, 'BpkCalendarDate_bpk-calendar-date__3VYKN') and (@aria-label, 'Thursday, 12 September 2019')]")
我想要的URL
//Sleep for five seconds.
sleep(5);
//Redirect using the Location header.
header("Location: case_management.php?id='".$case_id."'");
if(!isset($_POST['submit']))
{
//This page should not be accessed directly. Need to submit the form.
echo "Submitted";
}
//Post reply drawn
$sla_client = $_POST['sla_client'];
$case_id = $_POST['case_id'];
$status = $_POST['status'];
$notes = $_POST['notes'];
$depart = $_POST['depart'];
178是从上一页的表单中提取的,该表单位于我要使用POST方法定向的页面上。我知道上一页的信息是通过SQL更新我的数据库的。