ifonly
07-24-2003, 09:47 AM
i have been trying to use the very helpful tutorial on passing a variable between html pages:
http://www.actionscripts.org/tutorials/intermediate/passing_variables_around/index.shtml
it passes a value $value between two pages using a holding php script- nice.
what i need it to do is pass a number of variables
here is an attempt to adapt the script:
<title>Passing Value <?php echo $make, $description; ?></title>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" height="100%">
<tr>
<td align="center" valign="middle">
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">This is just
the middle page where you can do whatever...<br>
The value you passed by the way was <b>
<?php echo $make; ?>
<?php echo $description; ?>
<?php echo $mainuser; ?>
<?php echo $signedout; ?>
<?php echo $outdate; ?>
<?php echo $signedin; ?>
<?php echo $supplier; ?>
<?php echo $hire; ?>
<?php echo $contractor; ?>
<?php echo $notes; ?>
<?php echo $service; ?>
</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You can now
click <a href="end.php?make=<?php echo $make; ?>">here</a> to end your variable back to<br>
another HTML-based page with a Flash file in it.</font></p>
</td>
</tr>
</table>
I have added description to variables echo at the start but it doesn't list it when view the page, (it only lists description wierdly)
what am i doing wrong?
do i need to add it to the button at the bottom to work? surely it should print it out anyway ( I know i will have to adjust the click here button script too any help on the syntax of that would be greatly appreciated...i assume it will be similar to the top bit tho)
thanks
marcus
http://www.actionscripts.org/tutorials/intermediate/passing_variables_around/index.shtml
it passes a value $value between two pages using a holding php script- nice.
what i need it to do is pass a number of variables
here is an attempt to adapt the script:
<title>Passing Value <?php echo $make, $description; ?></title>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" height="100%">
<tr>
<td align="center" valign="middle">
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">This is just
the middle page where you can do whatever...<br>
The value you passed by the way was <b>
<?php echo $make; ?>
<?php echo $description; ?>
<?php echo $mainuser; ?>
<?php echo $signedout; ?>
<?php echo $outdate; ?>
<?php echo $signedin; ?>
<?php echo $supplier; ?>
<?php echo $hire; ?>
<?php echo $contractor; ?>
<?php echo $notes; ?>
<?php echo $service; ?>
</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You can now
click <a href="end.php?make=<?php echo $make; ?>">here</a> to end your variable back to<br>
another HTML-based page with a Flash file in it.</font></p>
</td>
</tr>
</table>
I have added description to variables echo at the start but it doesn't list it when view the page, (it only lists description wierdly)
what am i doing wrong?
do i need to add it to the button at the bottom to work? surely it should print it out anyway ( I know i will have to adjust the click here button script too any help on the syntax of that would be greatly appreciated...i assume it will be similar to the top bit tho)
thanks
marcus