954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How do I display inputs to contact form/comment box to a separate webpage?

I am using HTML for the contact form fields and I wish to redirected the inputs to another webpage and have it displayed there. Is there a way to do it with PHP? Thank you!

kasxxiazexxi
Newbie Poster
1 post since Apr 2011
Reputation Points: 10
Solved Threads: 0
 
I am using HTML for the contact form fields and I wish to redirected the inputs to another webpage and have it displayed there. Is there a way to do it with PHP? Thank you!


Yes.. You have to use form tag in your html form and specify the action property like

<form method="post" action="secondPage.php">
/* Your html form design here */
</form>


You can display the posted values in secondPage.php

Karthik_pranas
Posting Pro
564 posts since Feb 2011
Reputation Points: 96
Solved Threads: 97
 

ya you can do this use the following code to do this:-

form.html
<form action="display.php" method="POST">
Name<input type="text" name="u_name" placeholder="enter your name">
//other fields u want to add,add your code here......
</form>


display.php

<?php
echo $_POST['u_name'];
?>


If your problem is solved mark it as solved...

tomato.pgn
Posting Whiz in Training
262 posts since Mar 2011
Reputation Points: 4
Solved Threads: 32
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: