Forum Moderators: coopster

Message Too Old, No Replies

Passing variable with forms

         

malcolmcroucher

6:16 am on Nov 13, 2008 (gmt 0)

10+ Year Member



okay this is most probably a newbie question.

Ive been using a hidden input box to pass information between forms , but now looking for an alternative , are there any ?

Regards

Malcolm

Anyango

6:43 am on Nov 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



been using hidden input box like this ?

<input type="hidden" name="myField" value="Value Of MyField">

dreamcatcher

8:01 am on Nov 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sessions maybe? Store the data in a session when you process:

foreach ($_POST AS $key => $value) {
$_SESSION[$key] = $value;
}

And then access the sessions on the next page. Just an idea.

dc

[edited by: dreamcatcher at 8:03 am (utc) on Nov. 13, 2008]

Habtom

8:03 am on Nov 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



DB, sessions, cookies