RE: [PHP] HTML button display problem

From: Date: Fri, 19 Jul 2002 18:42:11 +0000
Subject: RE: [PHP] HTML button display problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108557@lists.php.net to get a copy of this message
[snip] I am working through an issue where I'm trying to display HTML code, stored in a text field in a MySQL database. The code that I have looks like this: <tr> <td colspan=3 ><center> <?php printf($result[PAYPAL_BUTTON]); ?> </center> </td> </tr> This code displays nothing when viewed on the web server, although the contents of the db field are: <FORM method="POST" > <P><INPUT type="submit" value="Submit" name="subBut"> </FORM> 1. How do I get this code to display correctly (i.e. create the button / not show the underlying HTML)? [/snip] Try eval() http://www.php.net/manual/en/function.eval.php HTH! Jay "Remember…pillage first. THEN burn." ************************************* * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/ * * No developer is an island ... * *************************************

« previous php.general (#108557) next »