Unable to pass variable data

Posted by JM4 on Stack Overflow See other posts from Stack Overflow or by JM4
Published on 2010-05-20T16:02:21Z Indexed on 2010/05/20 17:20 UTC
Read the original article Hit count: 285

Filed under:
|

I am trying to use the following code to pass information to another site but it keeps giving me an error:

Invalid Code:

$a = $b->doIt("James",$_SESSION['JNum'],"Frank"); 

Valid Sample Code:

$a = $b->doIt("James","123456","Frank");

In the first example, the page returns "number field is required". The second piece of sample code returns valid results. Do to the nature of this project though I need to pass the id number as they are stored in SESSION variables.

What am I missing?

© Stack Overflow or respective owner

Related posts about php

Related posts about session