Register FAQ Members List Resources Store Search Today's Posts Mark Forums Read

Go Back   Netpond ™ > Webmaster Forums and Resources > Adult Webmasters Main Forum
Register FAQ Calendar Radio and TV NP Shop Search Today's Posts Mark Forums Read

Adult Webmasters Main Forum Friendly adult web master chat, help and information

Mature
BBW, Natural Boobs Mature Live Sex Cams
Reply
 
LinkBack Thread Tools Display Modes
Old 06-23-2007, 05:18 AM   #1 (permalink)
ClevelandSlim
Its not always sunny on sundays
 
ClevelandSlim's Avatar
 
Join Date: Oct 2005
Location: Atlanta, GA
Posts: 345
Points: 30
Send a message via ICQ to ClevelandSlim Send a message via AIM to ClevelandSlim Send a message via MSN to ClevelandSlim Send a message via Yahoo to ClevelandSlim
Question Making a webpage printable...

is there a way to have an html form on a page, with a button that will print JUST the info from the form?

~Slim~
__________________

If you have ANY custom content needs,
hit me up on icq # 118463907 and
we can take care of you.
ClevelandSlim is offline   Reply With Quote Send a private message to ClevelandSlim
Old 06-23-2007, 05:20 AM   #2 (permalink)
Head Boy
c@rnage
 
Head Boy's Avatar
 
Join Date: Feb 2004
Location: England
Posts: 43,473
Points: 8,140
I haven't tried it, but would it work if you used frames?
Head Boy is offline   Reply With Quote Send a private message to Head Boy
Old 06-23-2007, 05:27 AM   #3 (permalink)
ClevelandSlim
Its not always sunny on sundays
 
ClevelandSlim's Avatar
 
Join Date: Oct 2005
Location: Atlanta, GA
Posts: 345
Points: 30
Send a message via ICQ to ClevelandSlim Send a message via AIM to ClevelandSlim Send a message via MSN to ClevelandSlim Send a message via Yahoo to ClevelandSlim
I'm not sure. I need it to print on the surfer's side. Like if they are making a purchase, they can fill out the form online, then hit print/submit and the info gets sent to my database, and also prints out on the customers end...

Making this site for someone else, not something I would want for myself...

~Slim~
__________________

If you have ANY custom content needs,
hit me up on icq # 118463907 and
we can take care of you.
ClevelandSlim is offline   Reply With Quote Send a private message to ClevelandSlim
Old 06-23-2007, 05:31 AM   #4 (permalink)
Head Boy
c@rnage
 
Head Boy's Avatar
 
Join Date: Feb 2004
Location: England
Posts: 43,473
Points: 8,140
I've not seen one with a print and submit button. I've seen a few that return a report after the submit, and that includes a print button. I suspect that you'll need a bit of php (or other code) to do it though.
Head Boy is offline   Reply With Quote Send a private message to Head Boy
Old 06-23-2007, 06:10 AM   #5 (permalink)
ristac
______________________
 
ristac's Avatar
 
Join Date: Jan 2007
Posts: 2,973
Points: 31
Send a message via ICQ to ristac
yep I use one on a main stream site, will PM you the details so you can take a look, just scroll down the page and copy the source code which I found at Dynamic Drive
ristac is online now   Reply With Quote Send a private message to ristac
Old 06-23-2007, 06:48 AM   #6 (permalink)
ScreaM
The Bumpmeister
 
ScreaM's Avatar
 
Join Date: Sep 2004
Posts: 72,973
Points: 13,920
Quote:
Originally Posted by ristac
yep I use one on a main stream site, will PM you the details so you can take a look, just scroll down the page and copy the source code which I found at Dynamic Drive
If you found it at Dynamic Drive, what's wrong with posting it here?
__________________




[01:44] ScreaM: WHAT? you couldn't get it up?
[01:45] DirtyJumbo: she got pissed off called me a homo and left lol
ScreaM is offline   Reply With Quote Send a private message to ScreaM
Old 06-23-2007, 07:06 AM   #7 (permalink)
Head Boy
c@rnage
 
Head Boy's Avatar
 
Join Date: Feb 2004
Location: England
Posts: 43,473
Points: 8,140
Quote:
Originally Posted by ScreaM
If you found it at Dynamic Drive, what's wrong with posting it here?
Maybe he's worried about copyright.
Head Boy is offline   Reply With Quote Send a private message to Head Boy
Old 06-23-2007, 07:06 AM   #8 (permalink)
ristac
______________________
 
ristac's Avatar
 
Join Date: Jan 2007
Posts: 2,973
Points: 31
Send a message via ICQ to ristac
Nothing is wrong if the post allowed me to copy the code into it. As it is Java based it wouldn't show how it should...
ristac is online now   Reply With Quote Send a private message to ristac
Old 06-23-2007, 07:12 AM   #9 (permalink)
PornFactory
Porn is my game!
 
PornFactory's Avatar
 
Join Date: Jun 2005
Location: Croatia
Posts: 10,414
Points: 425
Send a message via ICQ to PornFactory
I'm sure its possible but didn't need it so far so don't have a code for that...
__________________
REAL WEBCAM MONEY MAKER | CHEAP FREESITE TEMPLATES - $40 for 28 templates - PM me |
PornFactory is online now   Reply With Quote Send a private message to PornFactory
Old 06-23-2007, 07:18 AM   #10 (permalink)
ScreaM
The Bumpmeister
 
ScreaM's Avatar
 
Join Date: Sep 2004
Posts: 72,973
Points: 13,920
Quote:
Originally Posted by ristac
Nothing is wrong if the post allowed me to copy the code into it. As it is Java based it wouldn't show how it should...
you can use the php tags to post it. see : http://www.netpond.com/showthread.ph...74#post1623474

p.s. you'll have to write "java$cript" for it to show to us.
__________________




[01:44] ScreaM: WHAT? you couldn't get it up?
[01:45] DirtyJumbo: she got pissed off called me a homo and left lol
ScreaM is offline   Reply With Quote Send a private message to ScreaM
Old 06-23-2007, 07:35 AM   #11 (permalink)
ristac
______________________
 
ristac's Avatar
 
Join Date: Jan 2007
Posts: 2,973
Points: 31
Send a message via ICQ to ristac
Quote:
Originally Posted by ScreaM
you can use the php tags to post it. see : http://www.netpond.com/showthread.ph...74#post1623474

p.s. you'll have to write "java$cript" for it to show to us.
Will keep that in mind next time thanks.
ristac is online now   Reply With Quote Send a private message to ristac
Old 06-23-2007, 08:12 AM   #12 (permalink)
mojoman
and the award for the most annoying avatar...
 
mojoman's Avatar
 
Join Date: Feb 2006
Posts: 3,723
Points: 1,555
yeah, it sounds like that putting it into your db is more important then them printing it (really it is!), so you should process the form data using js or php, put it in the db if all is ok, then dynamically generate a page from the variables with the print button on it.

submitting the form and printing at the same time is a bad idea in case of mistakes etc!
__________________
Quote:
Originally Posted by God
And number eleven: "Thou shall not whore on forums"... What? What do you mean there isn't enough space?
mojoman is offline   Reply With Quote Send a private message to mojoman
Old 06-24-2007, 05:53 PM   #13 (permalink)
Teranoz
Webcoder
 
Teranoz's Avatar
 
Join Date: Jan 2003
Location: Netherlands
Posts: 1,288
Points: 0
use css

[style type="text/css" media="print"]
.noprint {
visibility:hidden;
}
[/style]

Give all non printable the class noprint
Teranoz is offline   Reply With Quote Send a private message to Teranoz
Old 06-24-2007, 06:01 PM   #14 (permalink)
ScreaM
The Bumpmeister
 
ScreaM's Avatar
 
Join Date: Sep 2004
Posts: 72,973
Points: 13,920
Quote:
Originally Posted by Teranoz
use css

[style type="text/css" media="print"]
.noprint {
visibility:hidden;
}
[/style]

Give all non printable the class noprint
Hey man nice to see you after so long.

How's it going? How are you doing outside this business?
__________________




[01:44] ScreaM: WHAT? you couldn't get it up?
[01:45] DirtyJumbo: she got pissed off called me a homo and left lol
ScreaM is offline   Reply With Quote Send a private message to ScreaM
Old 06-24-2007, 06:10 PM   #15 (permalink)
Teranoz
Webcoder
 
Teranoz's Avatar
 
Join Date: Jan 2003
Location: Netherlands
Posts: 1,288
Points: 0
Still alive, coding php asp and dotnet for non adult customers and playing entropia universe. Still have my old sites, but dont promote them and dont make new stuff, but still got rebillers and once in a while a signup.
Was playing entropian universe, but the loot of the creatures was bad so I thought lets check out netpond. And with these type of coding questions I just have to respond, lol.
Teranoz is offline   Reply With Quote Send a private message to Teranoz
Old 06-24-2007, 06:12 PM   #16 (permalink)
ScreaM
The Bumpmeister
 
ScreaM's Avatar
 
Join Date: Sep 2004
Posts: 72,973
Points: 13,920
Quote:
Originally Posted by Teranoz
Still alive, coding php asp and dotnet for non adult customers and playing entropia universe. Still have my old sites, but dont promote them and dont make new stuff, but still got rebillers and once in a while a signup.
Was playing entropian universe, but the loot of the creatures was bad so I thought lets check out netpond. And with these type of coding questions I just have to respond, lol.
Cool. Do pop-in from time to time.
__________________




[01:44] ScreaM: WHAT? you couldn't get it up?
[01:45] DirtyJumbo: she got pissed off called me a homo and left lol
ScreaM is offline   Reply With Quote Send a private message to ScreaM
Old 06-24-2007, 06:13 PM   #17 (permalink)
Teranoz
Webcoder
 
Teranoz's Avatar
 
Join Date: Jan 2003
Location: Netherlands
Posts: 1,288
Points: 0
Hehe I do, you just saw.
Teranoz is offline   Reply With Quote Send a private message to Teranoz
Old 06-24-2007, 06:54 PM   #18 (permalink)
ClevelandSlim
Its not always sunny on sundays
 
ClevelandSlim's Avatar
 
Join Date: Oct 2005
Location: Atlanta, GA
Posts: 345
Points: 30
Send a message via ICQ to ClevelandSlim Send a message via AIM to ClevelandSlim Send a message via MSN to ClevelandSlim Send a message via Yahoo to ClevelandSlim
Quote:
Originally Posted by Teranoz
use css

[style type="text/css" media="print"]
.noprint {
visibility:hidden;
}
[/style]

Give all non printable the class noprint
Thanks for the info man. One question... will this work for form items such as text input boxes, checkboxes, and radio buttons?

~Slim~
__________________

If you have ANY custom content needs,
hit me up on icq # 118463907 and
we can take care of you.
ClevelandSlim is offline   Reply With Quote Send a private message to ClevelandSlim
Old 06-24-2007, 08:41 PM   #19 (permalink)
facialfreak
The Host with the Most!
 
facialfreak's Avatar
 
Join Date: May 2004
Location: A1WebSolutions.com
Posts: 8,864
Points: 411
Send a message via ICQ to facialfreak
Quote:
Originally Posted by ClevelandSlim
I'm not sure. I need it to print on the surfer's side. Like if they are making a purchase, they can fill out the form online, then hit print/submit and the info gets sent to my database, and also prints out on the customers end...

Making this site for someone else, not something I would want for myself...

~Slim~
Use a PHP mail script .... and have it by default mail a copy to the email address they entered, as well as you.

would be pretty simple actually ...
facialfreak is offline   Reply With Quote Send a private message to facialfreak
Old 06-26-2007, 10:54 AM   #20 (permalink)
Teranoz
Webcoder
 
Teranoz's Avatar
 
Join Date: Jan 2003
Location: Netherlands
Posts: 1,288
Points: 0
Quote:
Originally Posted by ClevelandSlim
Thanks for the info man. One question... will this work for form items such as text input boxes, checkboxes, and radio buttons?

~Slim~
yep

input type="text" class="noprint"

or if you want it with all input things

[style type="text/css" media="print"]
input, select, textarea {
visibility:hidden;
}
[/style]

You could also put the part you dont want to print in a table with the class noprint

table border="0" cellpadding="0" cellspacing="0" class="noprint"

or put these around it :
[span class="noprint"]
non printable content goes here
[/span]

(and like always, change the [ and ] into the html brackets)
Teranoz is offline   Reply With Quote Send a private message to Teranoz
Reply


Thread Tools
Display Modes