By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,633 Members | 1,735 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,633 IT Pros & Developers. It's quick & easy.

How can I pass a varible from php to an html doc?

P: n/a
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?

Thanks

Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
That does not make sence...
"C-man" <ia********@shaw.ca> wrote in message
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?
Thanks

Jul 17 '05 #2

P: n/a
"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
Jul 17 '05 #3

P: n/a

"Hayden Kirk" <sp**@spam.com> wrote in message
news:Kc*******************@news02.tsnz.net...
That does not make sence...


That does not pass my spell checker...
;-)

- Virgil
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.