Solved

value of the text box

Posted on 2016-11-01
2
13 Views
Last Modified: 2016-11-01
I select data from my database and put it into textbox in oder to update the data inside the textbox. But when I write it like this, it reads only the first word of my variable which is $urun
my textbox is : <input type=text name=urun  value=$urun />
what should I do?
0
Comment
Question by:Braveheartli
2 Comments
 
LVL 30

Accepted Solution

by:
Marco Gasi earned 500 total points
ID: 41868020
Use
<input type=text name=urun  value=<?php echo $urun; ?> />

Open in new window

or
<input type=text name=urun  value=<?=$urun ?>/>

Open in new window

1
 
LVL 1

Author Closing Comment

by:Braveheartli
ID: 41868021
Thank you
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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

708 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

17 Experts available now in Live!

Get 1:1 Help Now