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
3 3943
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.
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????
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 - $_SESSION['index']="some value";
, you can access $_SESSION['index'] on every page of the website unless u have called
in each page.
You can go through http://www.php.net/session for more on session
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 can get text to go into the main body of the PDF file, but
nothing into a header. I have messed with this for several hours, seached
the web and no luck. Any help would be greatly appreciated.
Here is my script - which prints "Test Output" in...
|
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 put
either tag inside an HTML <TD> and have the same kind of scrolling effect.
This would allow me to fill the screen and have the size of the scrolling
box change on resize.
Thanks in advance.
|
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 taken from a MySQL DB, but it doesn't output the labels properly. As soon as it gets to the bottom of the page, it kinda spans the bottom two labels across the two pages. How do I tell it to print the whole last label on the second page? I had a look at...
|
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 example in internet and group archieves and www.fpdf.org
page.
|
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( $fname, "rb" );
$buf = fread( $handle, filesize( $fname ));
fclose( $handle );
$len = strlen( $buf );
| |
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 data in table format,which are used for plotting the graphs...But i dont know how to insert the graph in FPDF..
I have seen the tutorial where they use the
$logo=get contence.....(http://localhost/graph.php)
I had tried this but it is not...
|
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 diagnose and fix the
problem?
tia,
me
|
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 object with the line 'var oMyO =
Server.CreateObject("Type.Class")'. I can successfuly call methods
from that object (AKA a "ResetAll(DWORD ID)" by doing "oMyO.ResetAll =
1;"). But I can't seem to call a "Reset(DWORD x, DWORD y, DWORD ID)"...
|
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 the v.1.53. And now
the setSourceFile method of the previous fpdi class (now it is called
FPDF) is gone. What should be used instead of it?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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 we have to send another system
| |