Reply to Re: Post array values (beginner's question)

Your name:

Reply:


Posted by Jerry Stuckle on 09/28/05 04:35

brian_mckracken@yahoo.com wrote:
> This might not be the right group for this question, since its kind of
> a pure html question...
>
> Given the html construct:
>
> <form action='index.php?expand=0,10000' method='post'>
> Email: <input type='text' name='login[email]' size='30'/>
> Password:<input type='password' name='login[passwd]' size='30'/>
> </form>
>
> I'm trying to construct a url so that the form values are posted in the
> url...
>
> I.e, something like:
> http://www.acme.com/index.php?expand0,10000&login[email]=joe@mail.com&login[passwd]=secret1234
>
> ... but since the form values to receive the values looks like an
> array(??) this doesn't seem to work.
>
> Just wondering if anyone could give me some hints on what I'm doing
> wrong here.
>
> Thanks for any comments.
>
> /Brian
>

For a post operation, the incoming data will be in the $_POST variable.

In your case you are using the id's "login[email]" and "login[passwd]',
so your values will be in the array as $_POST['login']['email'] and
$_POST['login]['passwd]

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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