You are here: Retaining form values in PHP « PHP Programming Language « IT news, forums, messages
Retaining form values in PHP

Posted by Steve Poe on 08/03/06 18:31

Configuration:

PHP 4.3.9
Apache 2.0.52

Hello PHP group,

I am a novice to PHP. I have searched through the newsgroup on my
issue but I am not sure I know what I am missing.

I am creating an application to help the veterinarians at the animal
hospital I work at.

I have a form which present a select list of animals (from a database
query) which belong to a client. I can see the animal names in memory
and the client account number. When I select the appropriate animal
from the list, I see the selected animal name ("spot") but everything
else in memory I need (client account number) has disappeared. I've
heard this is normal.

I've tried storing the client account number is a session
($_SESSION['account_number"] before the submit, and I can see it, but
this value too seems to be eliminated once the form is submitted.

I've read I can use Javascript to get around this, but I want to learn
the PHP way.

Thanks for your time and help.

Steve Poe

 

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

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