•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 423,499 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,679 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 863 | Replies: 7
![]() |
•
•
Join Date: May 2008
Location: Hyderabad, India
Posts: 261
Reputation:
Rep Power: 0
Solved Threads: 30
I think it on dynamic page
Thanx,
Sreekanth
www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Sreekanth
www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
•
•
Join Date: May 2008
Location: Hyderabad, India
Posts: 261
Reputation:
Rep Power: 0
Solved Threads: 30
please the post this thread in ASP or ASP.net forum
They will Answer
They will Answer
Thanx,
Sreekanth
www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Sreekanth
www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Hi Pranav,
I don't quite understand. Would you like the form to be printed onscreen?
If so (Im going to use php to do this) here is what we will do.
Simple HTML form:
Then comes the PHP
I'm going to explain it, then give you the complete code.
Alright so first we assign varibles.
Hope you see what I'm doing here, basically we giving our textareas/boxs names to be called by.
next we will want to print it onscreen. To Accomplish this. We will use the ECHO command, then call the varibles we assigned.
Read below:
Notice we using Html? and only php to fill in the blanks.
Your complete code would look like this:
Done! Remeber to name the php section of the code mail.php (if you following this tutorial, if not, just name it to anything you assigned your form action to)
If you need any more assistance, just ask.
Regards,
I don't quite understand. Would you like the form to be printed onscreen?
If so (Im going to use php to do this) here is what we will do.
Simple HTML form:
<form id="form1" name="form1" method="post" action="mail.php">
<p>Name
<input name="visitor" type="text" id="visitor" />
</p>
<p>Email
<input name="visitormail" type="text" id="visitormail" />
</p>
<p>Message
<textarea name="notes"></textarea>
</p>
</form>Then comes the PHP
I'm going to explain it, then give you the complete code.
Alright so first we assign varibles.
<?php $name = $_POST['visitor']; $email = $_POST['visitormail']; $msg = $_POST['notes']; ?>
Hope you see what I'm doing here, basically we giving our textareas/boxs names to be called by.
next we will want to print it onscreen. To Accomplish this. We will use the ECHO command, then call the varibles we assigned.
Read below:
<p align="center">
Thank You : <?php echo $name ?> ( <?php echo $email ?> )
<br />
Message:<br />
<?php $notesout = str_replace("\r", "<br/>", $notes);
echo $notesout; ?>
<br /><br />
<a href="index.html"> Home </a></p>Notice we using Html? and only php to fill in the blanks.
Your complete code would look like this:
<?php
$name = $_POST['visitor'];
$email = $_POST['visitormail'];
$msg = $_POST['notes'];
?>
<p align="center">
Thank You : <?php echo $name ?> ( <?php echo $email ?> )
<br />
Message:<br />
<?php $notesout = str_replace("\r", "<br/>", $notes);
echo $notesout; ?>
<br /><br />
<a href="index.html"> Home </a></p>Done! Remeber to name the php section of the code mail.php (if you following this tutorial, if not, just name it to anything you assigned your form action to)
If you need any more assistance, just ask.
Regards,
If this reply solved your problem, please add to my reputation and don't forget to mark this thread as solved.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- How to print a page from a form details??? (PHP)
- HTML Form post to PHP? (PHP)
- want to print a html document in landscape orientation (HTML and CSS)
- Fields in HTML Form (Perl)
- Getting a value into HTML form. (Perl)
- internet form handling (Python)
- Populating a fields on a form base on a selected item from a droplist. (PHP)
Other Threads in the HTML and CSS Forum
- Previous Thread: problem with the css , help please
- Next Thread: IE Shrinks my content div (?!?!)


Linear Mode