You are here: Re: Having trouble with php....input type=hidden « All PHP « IT news, forums, messages
Re: Having trouble with php....input type=hidden

Posted by me on 10/17/07 15:42

It wont work the way you are trying to do it. You would need to have both
values in the the select or radio value. Then explode it or something.
There is no way to link the hidden field to the correct value of the select
in your code.

if ($field_name=="member_lname") {
echo "<input type='radio' name='selection'
value='{$result['member_lname']},{$result['member_fname']}:{$result['member_id']}'>
{$result['member_lname']},{$result['member_fname']}<br />";
}

$value = explode(":",$_REQUEST['selection']);

$name = $value[0];
$id = $value[1];

There are many ways to do this this is just a quick example. Also If you use
this code be sure to scrub the $_REQUEST var

Eric Haskins
PHP Programmer
Parked.com

 

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

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