Hello all,
I am trying to write a simple PHP script to process a form.. the
function seems to be working fine
// subscriber is the users email in the form
if (( $subscriber ) && ($_SERVER['REQUEST_METHOD'] == 'POST') )
thing is while this processing is taking place the page load hangs...
in IE i see nothing the page background, in Firefox (even worse) I get
only 1/2 the page....
I would like the whole page to load the the processign to take place,
except that my PHP is 1/2 way down the page, inside the form
Any help would be greatly appreciated.
Thanks
Jason 5 2764
JasonDamianUs wrote:
Hello all,
I am trying to write a simple PHP script to process a form.. the
function seems to be working fine
// subscriber is the users email in the form
if (( $subscriber ) && ($_SERVER['REQUEST_METHOD'] == 'POST') )
thing is while this processing is taking place the page load hangs...
in IE i see nothing the page background, in Firefox (even worse) I get
only 1/2 the page....
I would like the whole page to load the the processign to take place,
except that my PHP is 1/2 way down the page, inside the form
Any help would be greatly appreciated.
Thanks
Jason
Jason,
This should not hang the processing, unless you have a loop or error in
your PHP code.
What do you get if you add the following to the start of your PHP code?
ini_set("display_errors","1");
error_reporting(E_ALL);
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
jerry,
thanks for the prompt response
those functions produce -
1
2037
Jerry Stuckle wrote:
JasonDamianUs wrote:
Hello all,
I am trying to write a simple PHP script to process a form.. the
function seems to be working fine
// subscriber is the users email in the form
if (( $subscriber ) && ($_SERVER['REQUEST_METHOD'] == 'POST') )
thing is while this processing is taking place the page load hangs...
in IE i see nothing the page background, in Firefox (even worse) I get
only 1/2 the page....
I would like the whole page to load the the processign to take place,
except that my PHP is 1/2 way down the page, inside the form
Any help would be greatly appreciated.
Thanks
Jason
Jason,
This should not hang the processing, unless you have a loop or error in
your PHP code.
What do you get if you add the following to the start of your PHP code?
ini_set("display_errors","1");
error_reporting(E_ALL);
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
sorry,
obviously I was not supposed to display those results.
I have to lookup the function to see how to obtain the results
Jason
JasonDamianUs wrote:
jerry,
thanks for the prompt response
those functions produce -
1
2037
Jerry Stuckle wrote:
JasonDamianUs wrote:
Hello all,
>
I am trying to write a simple PHP script to process a form.. the
function seems to be working fine
>
// subscriber is the users email in the form
if (( $subscriber ) && ($_SERVER['REQUEST_METHOD'] == 'POST') )
>
thing is while this processing is taking place the page load hangs...
in IE i see nothing the page background, in Firefox (even worse) I get
only 1/2 the page....
>
I would like the whole page to load the the processign to take place,
except that my PHP is 1/2 way down the page, inside the form
>
Any help would be greatly appreciated.
>
Thanks
>
Jason
>
Jason,
This should not hang the processing, unless you have a loop or error in
your PHP code.
What do you get if you add the following to the start of your PHP code?
ini_set("display_errors","1");
error_reporting(E_ALL);
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
ok.
I move those functions to the very beginning of my code
it produces
Notice: Undefined index: subscriber in
/homepages/43/d94351932/htdocs/email/email.php on line 22
Which referes to the line
$subscriber = $_POST['subscriber']; // get the subscriber name
Not sure why that is invalid, isnt that how you declare variables in
PHP??
Also the code works, so I am confused.
thanks
Jason
JasonDamianUs wrote:
jerry,
thanks for the prompt response
those functions produce -
1
2037
Jerry Stuckle wrote:
JasonDamianUs wrote:
Hello all,
>
I am trying to write a simple PHP script to process a form.. the
function seems to be working fine
>
// subscriber is the users email in the form
if (( $subscriber ) && ($_SERVER['REQUEST_METHOD'] == 'POST') )
>
thing is while this processing is taking place the page load hangs...
in IE i see nothing the page background, in Firefox (even worse) I get
only 1/2 the page....
>
I would like the whole page to load the the processign to take place,
except that my PHP is 1/2 way down the page, inside the form
>
Any help would be greatly appreciated.
>
Thanks
>
Jason
>
Jason,
This should not hang the processing, unless you have a loop or error in
your PHP code.
What do you get if you add the following to the start of your PHP code?
ini_set("display_errors","1");
error_reporting(E_ALL);
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
JasonDamianUs wrote:
JasonDamianUs wrote:
>>Jerry Stuckle wrote:
>>>JasonDamianUs wrote:
Hello all,
I am trying to write a simple PHP script to process a form.. the function seems to be working fine
// subscriber is the users email in the form if (( $subscriber ) && ($_SERVER['REQUEST_METHOD'] == 'POST') )
thing is while this processing is taking place the page load hangs... in IE i see nothing the page background, in Firefox (even worse) I get only 1/2 the page....
I would like the whole page to load the the processign to take place, except that my PHP is 1/2 way down the page, inside the form
Any help would be greatly appreciated.
Thanks
Jason
Jason,
This should not hang the processing, unless you have a loop or error in your PHP code.
What do you get if you add the following to the start of your PHP code?
ini_set("display_errors","1"); error_reporting(E_ALL);
-- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. js*******@attglobal.net ==================
jerry,
thanks for the prompt response
those functions produce - 1 2037
ok.
I move those functions to the very beginning of my code
it produces
Notice: Undefined index: subscriber in
/homepages/43/d94351932/htdocs/email/email.php on line 22
Which referes to the line
$subscriber = $_POST['subscriber']; // get the subscriber name
Not sure why that is invalid, isnt that how you declare variables in
PHP??
Also the code works, so I am confused.
thanks
Jason
(top posting fixed)
Yep. It means that $_POST doesn't have an element in the array with the
key 'subscriber'. Either it's not in the form you posted here or you
spelled it differently.
You should always verify $_GET and $_POST elements exist before
assigning them, i.e.
$subscriber = isset($_POST['subscriber']) ? $_POST['subscriber'] : null;
or something similar.
P.S. Please don't top post.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
================== This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: David Bradbury |
last post by:
Hi
On my form, as soon as the user clicks my submit button a message pops
up saying "Form processing" as the form submits. This is fine as long
as the user only clicks the submit button once....
|
by: nadeem_far |
last post by:
Hello All,
I am working on a .Net desktop application and I am having problem
displaying a form. I am using C# and version 1.1 of the framework. here
is how the code looks likes and I will...
|
by: Brad Quinn |
last post by:
It appears that IIS hangs the first time two requests are made for same page
in quick succession. Although it may very well be something else I'm doing
wrong.
I have a page (ViewDocument.aspx)...
|
by: Leo J. Hart IV |
last post by:
OK, here's another question for the experts:
I am building a multi-step (3 steps actually) form using a panel for
each step and hiding/displaying the appropriate panel/panels depending
on which...
|
by: COHENMARVIN |
last post by:
I'm a asp programmer starting out with asp.net. I understand that an
asp form can post to its own page and that this allows validation of
form fields on the server. But suppose all the controls...
|
by: James Radke |
last post by:
Hello,
I have a multithreaded windows NT service application (vb.net 2003) that I
am working on (my first one), which reads a message queue and creates
multiple threads to perform the processing...
|
by: rmgalante |
last post by:
Hello,
I have a VB.Net component that uses the XslTransform object. I am using
the FXSL randomizeList function in my XSL template. When I transform
the XML in the VB.Net component, my...
|
by: deko |
last post by:
I have a basic feedback form with a submit button.
After the "send" button is clicked, I want the user to be redirected to a
different page that says "Your message has been sent."
How do I do...
|
by: pbd22 |
last post by:
hi.
could somebody tell me, when uploading a file, i know the form where
the upload component is must
have enctype=multipart/form-data but, is the same true for the form
with the server code to...
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| |