Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing the form

Status
Not open for further replies.

maryer

IS-IT--Management
Jun 10, 2002
16
CY
Hello All!
I wrote the form in php and the datas go to the mysql database. But i need to have the same filled form printed on paper version. So how can i manage to get filled form not only in mysql database but in paper also?
Thank you in advance
 
when you process the data into mysql you should also use tha data to recreate the form at that time so that it can be printed.

form stuff:
<?php
// all these will have been submitted to your form
$name=me;
$surname=mine;
$age=99;

// run the database query
mysql_query(&quot;update table set name,surname,age values ('$name','$surname','$age') where whatever&quot;,$db);

// echo the database input to the screen fopr printing
printf(&quot;<form name=test>Name:<input type=text value=$name><br>Surname:<input type=text value=$surname><br>Age:<input type=text value=$age></form>&quot;);
?> ***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top