Kim Ocampo Octaviano
Kim Ocampo Octaviano

Reputation: 75

Pass Text-box Value to Another Page

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

Answers (1)

Shehroz Ahmed
Shehroz Ahmed

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

Related Questions