如何最大化Get查询长度?

时间:2014-08-20 22:54:03

标签: php html mysql

我正在使用Godaddy托管计划&我创建了一个php页面,使用get方法向我的主要买家提交信息。颂歌工作正常当我点击提交数据时,它运行查询但没有用它来获取完整的数据。我需要知道如何增加查询长度,以便获取完整的数据。以下几点可以帮助您理解我的问题。

  1. 我试过Chrome,Firefox。两个浏览器的结果都相同。
  2. 我不能使用post方法,因为它允许这样做,所以我需要以任何方式使用GET方法发布它。
  3. 我附上了PHP代码,这样你就可以了解我正在做的事情。

    echo "<td><a href=https://example.com/api.php?Key=wlbZRZ8KuFn7t.npuFsftlCKwBNpIpKrtFYZR0I7tfOfu0OHIE8BtFPrvAbi&API_Action=pingPostLead&Test_Lead=1&Mode=full&TYPE=71&IP_Address=000.000.0.0&SRC=directsw_autinsd&Landing_Page=replace_this&Driver_1_Ownership=Owned&Driver_1_Primary_Use=CommuteWork&Driver_1_Annual_Mileage=12000&Driver_1_Vehicle_Parking=Unknown&Driver_1_Salvaged_Vehicle=No&Age=Unknown&Driver_1_License_Status=Unknown&Driver_1_Filing_Required=None&Driver_1_Education=High%20School&Driver_1_Occupation=Not%20Listed&Driver_1_Age_When_First_Licensed=Unknown&Driver_1_FullTime_Student=No&Driver_1_Tickets_Accidents_Claims_Past_3_Years=Unknown&Driver_1_Bankruptcy_In_Past_5_Years=No&Driver_1_Additional_Drivers=No&Driver_1_Additional_Vehicles=No&Driver_1_DUI_DWI_In_The_Past_5_Years=No&Driver_1_Reposessions_In_The_Past_5_Years=Unknown&Driver_1_Desired_Collision_Coverage=No%20Coverage&Driver_1_Desired_Comprehensive_Coverage=No%20Coverage&Driver_1_First_Name=" . $row["firstname"] . "&Driver_1_Last_Name= " . $row["lastname"] . "&Driver_1_Address=" . $row["address"] . "&Driver_1_City=" . $row["city"] . "&Driver_1_State=" . $row["state"] . "&Driver_1_Zip=" . $row["zip"] . "&Driver_1_Daytime_Phone=" . $row["phone"] . "&Driver_1_Email=" . $row["email"] . "&Driver_1_Year_Of_Vehicle=" . $row["vyear"] . "&Driver_1_Make_Of_Vehicle=" . $row["vmake"] . "&Driver_1_Model_Of_Vehicle=" . $row["vmodel"] . "&Driver_1_Birthdate=" . $row["birthdate"] . "&Driver_1_Gender=" . $row["gender"] . "&Driver_1_Marital_Status=" . $row["mstatus"] . "&Driver_1_Credit_Rating=" . $row["creditrating"] . "&Driver_1_Current_Residence=" . $row["residence"] . "&Driver_1_Licensed_State=" . $row["lstate"] . "&Driver_1_Insured_Past_30_Days=" . $row["past30days"] . ">Submit</a></td>";
    

1 个答案:

答案 0 :(得分:3)

我认为你的href周围缺少引号。试试这个。请注意,您确实真的,应该使用POST

echo "<td><a href=\"https://example.com/api.php?Key=wlbZRZ8KuFn7t.npuFsftlCKwBNpIpKrtFYZR0I7tfOfu0OHIE8BtFPrvAbi&API_Action=pingPostLead&Test_Lead=1&Mode=full&TYPE=71&IP_Address=000.000.0.0&SRC=directsw_autinsd&Landing_Page=replace_this&Driver_1_Ownership=Owned&Driver_1_Primary_Use=CommuteWork&Driver_1_Annual_Mileage=12000&Driver_1_Vehicle_Parking=Unknown&Driver_1_Salvaged_Vehicle=No&Age=Unknown&Driver_1_License_Status=Unknown&Driver_1_Filing_Required=None&Driver_1_Education=High%20School&Driver_1_Occupation=Not%20Listed&Driver_1_Age_When_First_Licensed=Unknown&Driver_1_FullTime_Student=No&Driver_1_Tickets_Accidents_Claims_Past_3_Years=Unknown&Driver_1_Bankruptcy_In_Past_5_Years=No&Driver_1_Additional_Drivers=No&Driver_1_Additional_Vehicles=No&Driver_1_DUI_DWI_In_The_Past_5_Years=No&Driver_1_Reposessions_In_The_Past_5_Years=Unknown&Driver_1_Desired_Collision_Coverage=No%20Coverage&Driver_1_Desired_Comprehensive_Coverage=No%20Coverage&Driver_1_First_Name=" . $row["firstname"] . "&Driver_1_Last_Name= " . $row["lastname"] . "&Driver_1_Address=" . $row["address"] . "&Driver_1_City=" . $row["city"] . "&Driver_1_State=" . $row["state"] . "&Driver_1_Zip=" . $row["zip"] . "&Driver_1_Daytime_Phone=" . $row["phone"] . "&Driver_1_Email=" . $row["email"] . "&Driver_1_Year_Of_Vehicle=" . $row["vyear"] . "&Driver_1_Make_Of_Vehicle=" . $row["vmake"] . "&Driver_1_Model_Of_Vehicle=" . $row["vmodel"] . "&Driver_1_Birthdate=" . $row["birthdate"] . "&Driver_1_Gender=" . $row["gender"] . "&Driver_1_Marital_Status=" . $row["mstatus"] . "&Driver_1_Credit_Rating=" . $row["creditrating"] . "&Driver_1_Current_Residence=" . $row["residence"] . "&Driver_1_Licensed_State=" . $row["lstate"] . "&Driver_1_Insured_Past_30_Days=" . $row["past30days"] . "\">Submit</a></td>";