PHP Make input text box sticky

How do I make the following input box sticky?  I'm not sure how to work all of the Quote marks and brackets for the value.

<input type="text" name="addon-28-custom-price[manufacturer]" id="addon-28-custom-price[manufacturer]" onblur="findSum()" value="<?php if(isset($_POST['addon-28-custom-price[manufacturer'])) {echo "$_POST['addon-28-custom-price[manufacturer]']"; ?>" >

Open in new window

LVL 7
rgranlundAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
GaryConnect With a Mentor Commented:
<input type="text" name="addon-28-custom-price[manufacturer]" id="addon-28-custom-price[manufacturer]" onblur="findSum()" value="<?php  if(isset($_POST['addon-28-custom-price']['manufacturer'])) {echo $_POST['addon-28-custom-price']['manufacturer'];} ?>" >

Open in new window

0
 
GaryCommented:
What do you mean sticky?
0
 
rgranlundAuthor Commented:
Sticky meaning that the input remembers what you typed in if you click submit and it fails, so thast you don't have to type it in again.  What is the proper terminology for that?
0
 
rgranlundAuthor Commented:
Ah HA!  Learning something new here.
0
All Courses

From novice to tech pro — start learning today.