?
Solved

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

Posted on 2001-06-14
1
Medium Priority
?
292 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
[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
1 Comment
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 150 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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.…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

801 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