Solved

value of the text box

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Saving image into server to get url later 1 31
mysqli 3 21
How do I put a session for a radio button? 4 13
How to set a countdown by not using the PC time in PHP 36 44
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

920 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

14 Experts available now in Live!

Get 1:1 Help Now