Passing complicated variables between pages php
<p>I understand how to pass simple variables between pages but how do I pass a more complicated set of variables? page 1 consists of $full and $password,</p>

<p>page 1:</p>

<pre><code>&lt;?php
  session_start(); 
  $_SESSION['fullfullfull'] = 'hello';
?&gt;
</code></pre>

<p>page 2:</p>

<pre><code>   &lt;!-- second page --&gt;
    &lt;?php
        session_start();

    ?&gt;


&lt;iframe src="http://domain.com?source=indexpage&amp;url=&lt;?php echo $_SESSION['full']; ?&gt;&amp;submit=Make&amp;alias=&lt;?php echo $_SESSION['password']; ?&gt;"&gt;&lt;/iframe&gt;
</code></pre>

<p>string var </p>

<pre><code>   $full = $str1.$str.$str2.$stra.$str3.$strb.$str4.$strc.$str5;
</code></pre>

<p>password var:</p>

<pre><code>function createRandomPassword() { 

    $chars = "abcdefghijkmnopqrstuvwxyz023456789"; 
    srand((double)microtime()*1000000); 
    $i = 0; 
    $pass = '' ; 

    while ($i &lt;= 7) { 
        $num = rand() % 33; 
        $tmp = substr($chars, $num, 1); 
        $pass = $pass . $tmp; 
        $i++; 
    } 

    return $pass; 

} 

// Usage 
$password = createRandomPassword(); 
</code></pre>
