Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


PHP Make input text box sticky

Posted on 2014-07-31
Medium Priority
Last Modified: 2014-07-31
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

Question by:rgranlund
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 58

Expert Comment

ID: 40232131
What do you mean sticky?

Author Comment

ID: 40232181
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?
LVL 58

Accepted Solution

Gary earned 2000 total points
ID: 40232222
<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


Author Closing Comment

ID: 40232250
Ah HA!  Learning something new here.

Featured Post

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question