I want to take printout by a button of php output

Hi friends…
I have a page in which all details of user displays. I want that when user click on button"Print ICard" then ICard is printed and this printed Icard have size of what I desire instead of full page and I also need “Thank You” message on print out which is not displayed in web page…
I don’t have much knowledge of css and php. So, please give the full code of it…
Plzzzzzzzzz help…
Anyone???
thanks in advance…
Plzzzzzzzzzzzz

I don’t have much knowledge of css and php. So, please give the full code of it…

what, you mean for free? :lol:

I m not understanding. What you want to say???

you asked for the full code.

for what you want, completely working html, php, css and probably javascript, it would take me more time to put together than what I am prepared to do for free.

if you wanted to learn how to do it then I would be prepared to help.

Yes I have learned that in site point, the members of the forums help you learn even give you some starter code. But as long as you try and play around with it yourself and then you have some problems in specific areas we will be more than happy to help.

As Kalon said, what you are asking is complete webpage design. As Kalon, and others, has helped me in the past, we can help once you have tried and you need help in specific areas.

I was a little confused on what you were asking, but what I presume you are saying is that when a particular button is pressed, print out it’s value.
I do not mean to be rude, but here is a start for you:

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="author" content="Ankit.pandeyc012" />
<title>PHP button printout</title>
</head>
<body>
<?php
/* Pseudo code--just to get you started*/
If(button1.pressed()===true)
   {
     echo "Button 1 has been pressed";
}
else if(button2.pressed()===true)
    {
      echo "Button 2 has been pressed";
}
else if(button3.pressed())
/* Assuming that the successful completion of the boolean function pressed() retunes true at the end, one can also write the condition like so */
    {
      echo "Button 3 has been pressed";
}
else
{
   echo "No buttons have been pressed";
}
?>
</body>
</html>

For more reference, I would reccomed checking out and reading the following:
http://w3schools.com/php/php_get.asp
The try-it-yourself example in the page above seems to me be exactly what you want to do by my understanding.
or
http://www.php.net/manual/en/

In terms of styling, once you get the basic up and running then make it elegant.

First working code. Then Fast code. Then elegant code.

After you have the php script working I would recommend daring out a layout, wire-framing, in a Graphic design programme or on paper and then scanning it. Then try recreating it with code and ask when you need help.

Keep in mind that not everything you can draw is possible tho :slight_smile: not yet.