Solved

value in <input text field READONLY > cannot accept external variable

Posted on 2001-06-14
1
242 Views
Last Modified: 2010-04-09
Hi!

Score for Test A : <input type=text name=test1 value=$test1 size=3 READONLY><p>

I am trying to pass on a (PHP) variable to be re-display on a form but by setting the value=$var, it still does not take on the value. Could it be an incorrect syntax?


Regards
Chee Seng
0
Comment
Question by:tohcs
1 Comment
 
LVL 40

Accepted Solution

by:
RQuadling earned 50 total points
ID: 6191425
Ideally, the line SHOULD read something like ...

Score for Test A : <input type="text" name="test1" value="<?php echo $test1 ?>" size="3" READONLY><p>


0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

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

18 Experts available now in Live!

Get 1:1 Help Now