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

please help php page print

Hi

visit http://servunity.in/old/test/form_classII.php

I need to print that web form and I successfully insert those field into database but I want both function in one submit(click) please help me on this.

manzoor.ilahi77
Newbie Poster
14 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

You need to explain your problem a little better, tell us your problem and show us the code in question.

JobBrown
Newbie Poster
9 posts since Aug 2011
Reputation Points: 8
Solved Threads: 2
 

As far as printing the page that is more of a javascript function.
without seeing your code I cannot recommend proper placement...
but you can simply try to add:

onClick="window.print() 
to your submit button.
so:
<form method="post" action="somepage.php">
<input type="submit" name="submit" onClick="window.print()">
// will print the current page you are on (which is what I don't think you want)
so on 'somepage.php' or in your if(isset($_POST['submit'])) { // code...
echo "<script type=\"text\\javascript\">window.print()</script>";
ddymacek
Posting Whiz
317 posts since Jun 2010
Reputation Points: 36
Solved Threads: 64
 

hi there, this message is to anyone who could help me fix this problem i have. buy r4i card cheap r4 card best r4 card I'm trying to install a Broadcom Netextreme ethernet controller but everytime i do it i get the following message " The wizard was interrupted before broadcom Netextreme Ethernet controller could be completely installed" Your system has not been modified.

Jonell Inclan
Newbie Poster
2 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

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