Solved

PHP Make input text box sticky

Posted on 2014-07-31
4
212 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now