"C-man" <ia********@shaw.ca> schrieb im Newsbeitrag
news:97qcc.5422$2H4.908@clgrps12...
Hey, I need to know if and how I would pass a variable from php to an html
document. I know how to go from a form to php but is there a way to go
back?
What do you want to do?
- Display the value of the variable?
<p>My variable: <?php echo $myvariable; ?></p>
- Store it in a form to keep it available after submitting?
<input type="hidden" name="myvariable" value="<?php echo $myvariable; ?>">
- Pass it to the next page with the url?
<a href="nextpage.php?myvariable=<?php echo $myvariable; ?>">Click here</a>
HTH
Markus