473,486 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

get and html text

I've to send many emails using a script that refresh every n seconds to
avoid server timeout (can't be bypassed).

Now, I've a loop wich detects how long does the script (a loop) takes to
run. If the script is close to the 25 seconds, then I redirect to itself
passing some values.

One of the value is some html code. Then I get it in variable, add some
text and so on, until threre is no more values in the database.

Now, passing the variables I do this:

($message contains the HTML code).

header('location:'.$_SERVER['PHP_SELF'].'?message='.$message);

but doing a $message = $_GET['message']; I get nothing in the $message
variable.
why ? any idea?

I've tried to do so:
header('location:'.$_SERVER['PHP_SELF'].'?message='.htmlentities($message));

(I added htmlentities function) but it doesn't work.

Any idea why ?

Bob
Dec 19 '05 #1
2 1226
Bob Bedford wrote:
I've to send many emails using a script that refresh every n seconds to
avoid server timeout (can't be bypassed).

Now, I've a loop wich detects how long does the script (a loop) takes to
run. If the script is close to the 25 seconds, then I redirect to itself
passing some values.

One of the value is some html code. Then I get it in variable, add some
text and so on, until threre is no more values in the database.

Now, passing the variables I do this:

($message contains the HTML code).

header('location:'.$_SERVER['PHP_SELF'].'?message='.$message);

but doing a $message = $_GET['message']; I get nothing in the $message
variable.
why ? any idea?

I've tried to do so:
header('location:'.$_SERVER['PHP_SELF'].'?message='.htmlentities($message));
(I added htmlentities function) but it doesn't work.

Any idea why ?
Try urlencode($message)
That is what urlencode is for. Do not use htmlentities because that is
something completely different.

Regards,
Erwin Moller

Bob


Dec 19 '05 #2
> Try urlencode($message)
That is what urlencode is for. Do not use htmlentities because that is
something completely different.

Thanks Erwin, it works !

Bob

Dec 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3380
by: nanookfan | last post by:
Hi all, I'm having a bizarre problem converting XML files to HTML using an XSLT. The problem is only occuring in my Netscape 7.0 browser. What makes it more bizarre is that it is only...
4
3391
by: frogman042 | last post by:
My daughter is playing around trying to learn JavaScript and she wrote a small program that prints out a message in increasing and decreasing font size and color changes. She is using document...
17
2451
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
20
5593
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
4
2097
by: J Huntley Palmer | last post by:
How may I setup a proper HTML mail message with embedded href links using PHP, that follows all the MIME rules? Any examples or links would be appreciated. Thanks!
1
16925
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
7
3589
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
2
3037
by: sateeshchandrasanga | last post by:
Hi All, My HTML code is working fine in Firefox.But its not displaying any thing in IE.Can you help me in this problem.And in Google crown its displaying but not properly. ...
10
6931
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
7100
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
7175
jinu1996
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...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7330
tracyyun
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...
0
5434
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,...
0
4559
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...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
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 ...
0
262
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.