wintallo Posted October 25, 2006 Share Posted October 25, 2006 I was wondering if anyone knows how to program a Try HTML script in PHP. If you're not sure what I mean, check out these to pages to see what I'm talking about.http://photobucket.com/practice.phphttp://www.w3schools.com/html/tryit.asp?filename=tryhtml_basicIF this isn't possible in php, can it be done in a cgi script? Thanks!wintallo.com Quote Link to comment Share on other sites More sharing options...
fert Posted October 25, 2006 Share Posted October 25, 2006 you just need to echo the html code Quote Link to comment Share on other sites More sharing options...
Stooney Posted October 25, 2006 Share Posted October 25, 2006 easyhere is your first step form.html[code]<form action="show.php" method="post"><textarea name="content"></textarea><input type="submit" value="Try"></form>[/code]and the next part show.php[code]<?phpecho $_POST['content']; //can also be globally used echo $content;?>[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.