Save values in Different variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jamhussain
Forum Newbie
Posts: 17
Joined: Sat Apr 07, 2012 2:04 am

Save values in Different variables

Post by jamhussain »

in action.html file
My HTML Form has Radio Buttons.
when I submit the form.
I get the values in action.php file.
I want to save the value in variable.
so that , If i submit the Form again.
it should be save its value in another variable.
If there are 3 radio buttons then I should get three variables having values of these radio buttons.
How can I get . please guide me. thanks.
User avatar
Grizzzzzzzzzz
Forum Contributor
Posts: 125
Joined: Wed Sep 02, 2009 8:51 am

Re: Save values in Different variables

Post by Grizzzzzzzzzz »

after the first submit, store the values in hidden fields in the form
jamhussain
Forum Newbie
Posts: 17
Joined: Sat Apr 07, 2012 2:04 am

Re: Save values in Different variables

Post by jamhussain »

But , how , please give example.I m new in php. thanks.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Save values in Different variables

Post by califdon »

I'm going to take a wild guess and say that it sounds like an assignment in a programming class. On these forums we don't do your homework for you, but prefer to help you by answering specific questions so you can learn something. That's what Grizzzzzzzzz did. To learn what hidden fields are, search for those words in Google (html hidden fields). Asking for detailed code in a forum is a very ineffective way to learn anything.
Post Reply