You are here: Re: form - request question « All PHP « IT news, forums, messages
Re: form - request question

Posted by nescio on 05/14/06 17:54

i changed the request to post and now i got rid of the phpsessid.
the only 'useless' one that is left is 'submit' , but that is no problem


> People can post to your script without
> using the form though, so you can't really trust what is posted. Also, if
> you''d change the location or surrounding code of the script it could
break.

the form is not availible to everyone, only a few people.


> Several solutions come to mind, for instance naming hidden inputs
"field[]",
> and store the fieldnames in there, but that still relies on the
> post-variables. As you're already using a session, why not add an array
with
> the fields to use there?
>
> You can then just:
> foreach($_SESSION['fields'] as $fieldname){
> //do stuff with $_POST[$fieldname]
> }
> And leave the rest of the $_POST variables alone?

yes, that can be a solution, but then i have to change a lot,
that means, a lot of extra work.

but when it has to be done, it has to be done.......tomorrow



thanks for your help and advice.

 

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

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