Solved

value of the text box

Posted on 2016-11-01
2
25 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 31

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

776 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