Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 4th, 2011, 04:36 AM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy what is wrong with this code?

Code:
<?php
 $text = "hello there";
?>
<input type = "text" value = "<?php echo $text ; ?>">
 
Old August 4th, 2011, 08:10 AM
Registered User
 
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
<?php
 $text = "hello there";
?>
<input type = "text" value = "<?php echo $text ; ?>">
there is nothing wrong in the above code......its working :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong code! sabra BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 0 May 23rd, 2010 01:20 PM
What's wrong with this code? appleseed C++ Programming 2 November 25th, 2006 08:17 AM
What is wrong in this code? gajee ASP.NET 1.0 and 1.1 Basics 2 July 14th, 2006 06:41 AM
What is wrong with code? rtr1900 Classic ASP Databases 1 April 3rd, 2006 03:20 AM
What is wrong with this code? SaharaWizard VB Databases Basics 2 January 28th, 2006 08:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.