Solved

PHP Make input text box sticky

Posted on 2014-07-31
4
225 Views
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

0
Comment
Question by:rgranlund
[X]
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
4 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40232131
What do you mean sticky?
0
 
LVL 7

Author Comment

by:rgranlund
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?
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 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

0
 
LVL 7

Author Closing Comment

by:rgranlund
ID: 40232250
Ah HA!  Learning something new here.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

752 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