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?
 
GaryCommented:
<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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.