Reply to Re: Posting behavior??

Your name:

Reply:


Posted by Shelly on 07/21/05 06:32

I also tried file_get_contents() and got the same effect.

Shelly

"Shelly" <sheldonlg.news@asap-consult.com> wrote in message
news:yYWdnUI4BZUfiELfRVn-gA@comcast.com...
>I took out the wordwrap on the sending side and I still get 16 (I counted
>now) spaces before the first character. After that it is fine. When I
>went to cut and paste to here, it looked like only one character.
>
> Here is an example:
>
> I am going to type this so that it has word wrap and will also have
> new paragraphs. It takes time to compose this so I amd going to
> simply cut and paste.
>
> So I did a $message = substr($message, 1);
>
> What happened was that the "I" at the beginning disappeared and it now had
> 17 spaces (since the first in the text is also a space).
>
> Now 16 is a curious number (2 bytes), so I suspect something is going on
> with the first two bytes that are invisible to a substr(), but show up in
> an echo.
>
> Anyone?
>
> Shelly
>
> "Shelly" <sheldonlg.news@asap-consult.com> wrote in message
> news:1p6dnZPckflwkELfRVn-uA@comcast.com...
>>I am a little puzzled by the sequence of events. Please help me out.
>>
>> I have page a.php. There is a button of type "submit" and name
>> "submit". I do an
>>
>> if (isset($_POST['submit'])) {....}
>>
>> I enter the braces. Inside the braces I have a
>>
>> header("Location: b.php");
>>
>> Now here is the thing. What happens is that the a.php seems to get
>> reexecuted, and since it now fails on a fopen in a.php, the thing never
>> gets to b.php. Initially I pass in to a.php parameters that enables it
>> to find the file that it needs to open and read. However, now I am
>> leaving a,php so why is a.php reexecuted? I came across this behavior
>> before when I needed to pass a variable that was defined in the page.
>> The called page couldn't get it. I solved this by setting a hidden
>> variable in the calling page to that value and passing the value of the
>> hidden variable in the url string.
>>
>> Also, what is the very best way of leaving a page and returning to the
>> calling page? Right now I have been naming the calling page in the
>> called page, but that is a bad hack. There has to be a better way. I
>> looked at things like PrevUrl and didn't understand it.
>>
>> Thanks,
>> Shelly
>>
>
>

[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

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