You are here: Re: newbie question about multiple actions on php « PHP Programming Language « IT news, forums, messages
Re: newbie question about multiple actions on php

Posted by enko on 11/18/82 11:41

There are a few ways to do it, but if you aren't displaying the results
on the next page, I would just do something like:

1. Rename the form variables to start with something like "in_"
(something parseable, but unique, i.e. "in_username", "in_checkbox",
etc.)
2. On page 2 create a loop inside the form that looks for the "in_"
part of the element name and creates hidden variables for each one.

while(list($key,$val)=each($_POST))
{
if(substr($key,0,3) == 'in_')
{
echo '<input type="hidden" name="in_' . substr($key,3)
.. '" value="' . $val . '">';
}
}

3. Continue prefixing each of the form elements that you want to pass
and including the code on each consecutive page.

 

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

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