You are here: Re: [PHP] Problem with hidden form input values « PHP « IT news, forums, messages
Re: [PHP] Problem with hidden form input values

Posted by Ben Edwards on 01/20/05 13:15

On Thu, 20 Jan 2005 07:33:01 +0800, Jason Wong <php-general@gremlins.biz> wrote:
> On Thursday 20 January 2005 07:07, Ben Edwards (lists) wrote:
> > I know this is not strictly speaking a PHP question but it is to do with
> > a PHP app.
> >
> > I have a form with a number of hidden values in it. After the post
> > print_r( $_POST ) shows all the values except these (this is copied from
> > 'Show Source' in the browser.
> >
> > <input type=hidden name=keyField[mb_memberships][0] value=mb_e_id>
> > <input type=hidden name=keyValue[mb_memberships][0] value=100000>
> > <input type=hidden name=keyField[mb_memberships][1] value=mb_id>
> > <input type=hidden name=keyValue[mb_memberships][1] value=1>
> >
> > Any idea why they wont post?
>
> It *should* work. Maybe you're using a crappy browser (or a strictly standards
> only browser) in which case you ought to (and you should do this anyway) be
> using proper HTML ie:
>
> <input type="hidden" name="keyField[mb_memberships][0]" value="mb_e_id">

Ime using Firefox (0.9 I think) but thanks for the tip. Am I correct
in thinking quoting is needed to make the HTML XHTML complient?

Ben
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> New Year Resolution: Ignore top posted posts
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Ben Edwards - Poole, UK, England
WARNING:This email contained partisan views - dont ever accuse me of
using the veneer of objectivity
If you have a problem emailing me use
http://www.gurtlush.org.uk/profiles.php?uid=4
(email address this email is sent from may be defunct)

 

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

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