Welcome Guest, Not a member yet? Register   Sign In
Generating a view AT the view level (Simple Print This Page)
#1

[eluser]Erocanti[/eluser]
I need a quick print this page solution until I have time to work on the css.

can a hidden input field containing the information that was passed onto that view be used to post the variables into another page?

Code:
<form method="POST" action="print.php">
<input type="hidden" name="vars"value="<? echo $rows; ?>" />
<button type="submit">Print</button>
&lt;/form&gt;

This is off the top of my head (a newb's head) so forgive me if its absurd in anyway.
As always, any input is appreciated.
#2

[eluser]InsiteFX[/eluser]
Code:
&lt;form&gt;
&lt;input type="button" value="Print This Page"&gt;
&lt;/form&gt;

InsiteFX
#3

[eluser]adityamenon[/eluser]
Quote:can a hidden input field containing the information that was passed onto that view be used to post the variables into another page?

Of course. It works for me all the time. I'm probably making some horrible mistake in architecture to need variables passed around so awkwardly, but it gets the really urgent job done...




Theme © iAndrew 2016 - Forum software by © MyBB