Reply to Re: get and html text

Your name:

Reply:


Posted by Erwin Moller on 12/19/05 18:22

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация