473,505 Members | 13,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP -> jScript popup-> FPDF

2 New Member
HI guys i'm newbie here, sorry if my english is not so well, (well i'm rarely using english ^^)
my question is that i'm using PHP to create a report (the report is using FPDF class)
as example if i want to create a sales report based on period defined by the user
so the value of the starting period n the ending period is saved into a variable
to be used for query. now the main problem is when a submit button is pressed and the page is redirected to a page which will display the result of the query in PDF format. but soon i realise that this is a dead end, what sould i do if a want to create another report?? i hit the back button and the page displayed as an expired display and needed to refresh
and i thought it will be better if the PDF page will come on a pop up window, but the problem is if i use the javascript pop up window then the Value stored in session on the php won't be passed to the pop up window?? am i right??

please help me
Jan 4 '08 #1
3 3931
shane3341436
63 New Member
HI guys i'm newbie here, sorry if my english is not so well, (well i'm rarely using english ^^)
my question is that i'm using PHP to create a report (the report is using FPDF class)
as example if i want to create a sales report based on period defined by the user
so the value of the starting period n the ending period is saved into a variable
to be used for query. now the main problem is when a submit button is pressed and the page is redirected to a page which will display the result of the query in PDF format. but soon i realise that this is a dead end, what sould i do if a want to create another report?? i hit the back button and the page displayed as an expired display and needed to refresh
and i thought it will be better if the PDF page will come on a pop up window, but the problem is if i use the javascript pop up window then the Value stored in session on the php won't be passed to the pop up window?? am i right??

please help me
If u r using session variables why do you need to submit the form. It will be better to use hyperlink to popup another page because the session variables can be accessed on the popped up page easily. If u r not using session variables, you can submit the page to another page where u can print the preview of the report on the html page and put a link or button which will pop up the pdf.
Jan 4 '08 #2
shikimori
2 New Member
If u r using session variables why do you need to submit the form. It will be better to use hyperlink to popup another page because the session variables can be accessed on the popped up page easily. If u r not using session variables, you can submit the page to another page where u can print the preview of the report on the html page and put a link or button which will pop up the pdf.
i'm using session variables, can the pop up window recognize the session variables from the parent page????
Jan 5 '08 #3
shane3341436
63 New Member
i'm using session variables, can the pop up window recognize the session variables from the parent page????
session variables are globally recognized.
If u r using
Expand|Select|Wrap|Line Numbers
  1. $_SESSION['index']="some value";
, you can access $_SESSION['index'] on every page of the website unless u have called
Expand|Select|Wrap|Line Numbers
  1. session_start()
in each page.

You can go through http://www.php.net/session for more on session
Jan 5 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
15711
by: Phillip T. Murphy | last post by:
Not sure if this is the correct forum, but since FPDF is a PHP script, I thought I would give it a try... I am having a problem getting ANYTHING to print in a header using the FPDF functions. I...
44
919
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
2
7141
by: LordMerlin | last post by:
Hi I'm trying to write a label printing routine, but I'm not being too sucsessful. I'm hoping maybe someone who's used FPDF b4 can help me out? Basically, I want to print labels from a data...
3
30293
by: K. | last post by:
Hello! Could you be so kind and help me with one problem I have. I would like to put an image into the table while creating PDF file. I use fpdf class (www.fpdf.org). I cannot find any...
17
2233
by: teser3 | last post by:
I can put out a Word Doc from PHP but if I try and manipulate the font size in the PHP part it outputs a blank Word Document. Here is what I have: <?php $fname="report.doc"; $handle = fopen(...
1
6535
by: Thivya | last post by:
hello, I am using Jpgraphs to generate graphs..i have to display the data for plotting the graphs as well.These results has to be in PDF.hence i used FPDF to generate pdf.. Now i can display the...
6
5460
by: Steve | last post by:
been gleening the user docs for fpdf. there's one simple example for using the image function. i can't seem to get it to work. has anyone else had problems with this, and if so, what did you do to...
1
3202
by: NvrBst | last post by:
I'm having a problem with a "Member not found. (Exception from HRESULT: 0x80020003 DISP_E_MEMBERNOTFOUND))" error. The origional ASP is JScript, and the ASP.NET is JScript.NET. I'm creating an...
1
2755
by: Sergei Riaguzov | last post by:
Hi, I'm having problems with fpdf v.1.1 used on the site - it doesn't open all PDFs with setSourceFile it says something about "missing xref headers". So I tried to install a newer fpdf version...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.