Home » questions » How do I get a variable into a hidden form?

How do I get a variable into a hidden form?

2006-07-29 11:01:46, Category: Programming & Design
I have built a variable from visiters choices and need to add this to a form like type=hidden value=variable

Answers

  1. simfox3

    On 2006-07-29 11:10:13


    Since all input types are passed along with the form, you can do this: ..... Then in javascript you can assign the value before submitting .....
  2. take two

    On 2006-08-06 10:06:03


    no idea
  3. nesters2003

    On 2006-07-30 02:35:48


    There are a number of ways of doing this. It would depend on how you capture your variable.. In asp for example you can use " %> In php you can use a simular method: "; ?> You can also use the javascript method: you can then use an onclick or onchange event to set the form value. Hope this helps.
  4. zippyy

    On 2006-07-29 11:07:40


    simply capture the data you are after and then insert into the form you wan to use it. for example if some one anwsers a qustion on site/app it has to be stored somewhere. find out where it is stored recalled it from that location if you can reinsert back into the app you want you in next.