Reputation: 75
How can i pass the text-box value to another page? Here is code: the 254 value should appear on the second page.
First Page:
Total Price:<input name= "totalprices" type="text" disabled="disabled" class="form-control autocomplete-location" id = "totalprices" value="254">
2nd Page:
echo $_POST['totalprices'];
Upvotes: 1
Views: 1229
Reputation: 537
To send disabled items to the POST array you can use readonly attribute.
<input name= "totalprices" type="text" readonly="readonly" class="form-control autocomplete-location" id = "totalprices" value="254">
Upvotes: 2