Solved

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

Posted on 2001-06-14
1
288 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 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

Technology Partners: 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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

717 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