Wrox Programmer Forums
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To 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 September 21st, 2006, 12:16 AM
Authorized User
 
Join Date: Aug 2005
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic text

How can I set text to <span> tag or <div> tag with PHP

Example a upload page or feedback page, after send pressed on same page it would write feedback/file sended

 
Old October 18th, 2006, 11:53 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

Hello Lofa,
i can not understand your request propelly, but try this
if you want to write a string inside php
<?php
echo "<div><span>file sended</span></div>";
?>
if it is not the answer please ask me the question propelly i'll answer you

surendran
(Anything is Possible)
http://ssuren.spaces.msn.com
 
Old October 19th, 2006, 01:14 AM
Authorized User
 
Join Date: Aug 2005
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I ment that exampel a login form, when login fails it would write under the form "login fail" I have tried that die(""); don't work.



 
Old October 20th, 2006, 12:34 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

ok,
when you redirect with error send a mode value as fail
header("Location: success.php?mode=fail"); )
in the page.
if($mode=="fail"){
echo "<div><span>login fail</span></div>";
}


surendran
(Anything is Possible)
http://ssuren.spaces.msn.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic text larry Flash (all versions) 1 January 4th, 2007 12:56 AM
Dynamic Text in Label funnylearning .NET Framework 2.0 2 September 18th, 2006 12:59 PM
Can't set text property of dynamic text box sreerajrs ASP.NET 1.0 and 1.1 Professional 1 May 31st, 2006 09:39 PM
Dynamic text... need help Varg_88 JSP Basics 3 August 30th, 2004 06:21 AM





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