You are here: Re: posting variables from forms « PHP Programming Language « IT news, forums, messages
Re: posting variables from forms

Posted by Jim Michaels on 01/23/06 09:54

some people don't have JavaScript - some Accessible machines for the
disabled, for instance.
I found this out when reading a book on making sites accessible.

"Al" <alexrussell101@gmail.com> wrote in message
news:1137798357.677856.289200@g44g2000cwa.googlegroups.com...
>
> windandwaves wrote:
>> Doing
>> the header function means that you loose the posted variables as posts so
>> that you have to post them again. Can you do something like this:
>> header(post-type, $_POST), basically directly reposting all posted
>> variables
>> to a new location?
>
> Well yes, it loses the informaiton as POSTs but you can recreate them
> as GETs and send them on their way in a header("Location: ");
>
> But if you want to resend as POSTs I think it's mildly impossible. I'm
> pretty sure you can't do it your way. The header() command just adds
> stuff the to header being sent back to the user, rather than the header
> of the redirected request, unfortunately :)
>
> I think the javascript way seems to be your only chance, and it's not
> particularly invasive. Plus if people have javascript disabled then you
> can default to my POST -> GET code and at least TRY to fulfil the silly
> non-javascript-user's request :)
>
> So yeah, employ both methods?
>

 

Navigation:

[Reply to this 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

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