Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: T_string?


Message #1 by "Joel Wickard" <jwickard@l...> on Wed, 15 Aug 2001 11:46:21 -0500
Hi Joel,

I sugees use the session or cookies to store objects y his values:

some example:

I use this funtions to set cookies with php:

-Retrieve the cookie value:
$nameVar = $HTTP_COOKIE_VARS["nameVar"];

- Set the cookie Value:
SetCookie("nameVar",yourValue, time()+86400*365, "/", "yourDoaim.xx", 0);

If you have any question consult the php reference manual on
http://www.php.net or send
other email to us.

Good luck!!

Luis Morales


if you

Joel Wickard wrote:

> Hello All.
> When I submit a form, I want to dynamically store the variables in an
> object.  Like so.
>
> while(list($var_name,) = each($HTTP_POST_VARS))
>  {
>       eval("$data_insert->" . $var_name . " = $" . $var_name . ";");
>  }
>
> And I get this error:
>
> Parse error: parse error, expecting `T_STRING' in c:\program files\apache
> group\apache\htdocs\dbo\rep_app\add_house.phtml on line 28
>
> Any Help?


  Return to Index