Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
PHP form with html?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="muso" data-source="post: 31746" data-attributes="member: 40"><p>You can enter HTML underneath the PHP you've written. So just take out the print "" lines, close the php and make your html document from there. When you want to use the form data in the page (like to print their name) just open a php tag and put what you like. There are lots of ways of doing it</p><p></p><p>eg.</p><p></p><p><?php</p><p></p><p>mail the data</p><p></p><p>?></p><p></p><p><html> etc... <body></p><p><?php print "Thanks " . $POST['name]; ?></p><p></p><p>[or:] </p><p>Thanks <?php echo $POST['name]; ?></p><p></body></p><p></html></p></blockquote><p></p>
[QUOTE="muso, post: 31746, member: 40"] You can enter HTML underneath the PHP you've written. So just take out the print "" lines, close the php and make your html document from there. When you want to use the form data in the page (like to print their name) just open a php tag and put what you like. There are lots of ways of doing it eg. <?php mail the data ?> <html> etc... <body> <?php print "Thanks " . $POST['name]; ?> [or:] Thanks <?php echo $POST['name]; ?> </body> </html> [/QUOTE]
Verification
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
PHP form with html?
Top