473,320 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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
3 1536
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
"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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: uitbundig | last post by:
I am writing a function as listed below. My problem is that this form passes only the variable 'state' and not the others. Can somebody help me? Thanks, Gustaaf function...
5
by: sam | last post by:
Can you teache me how to pass paramters between classes? I did not know how to use call by value and address among classes rather than sub modules. If I use another approach to declare a global...
1
by: Peter | last post by:
Does anybody know how to convert a string to a varible? For example, I have defined 2 structures Structure SS dim Name as string dim ID as short end structure Structure TT
10
by: John Bailo | last post by:
I want to pass a SqlCommand object as a input parameter to a method. I want to pass the SqlCommand "by value" so that any updates to the original object are *not* reflected in the object within...
4
by: Phillip Vong | last post by:
I'm a newbie using VS2005 to learn and test. I'm testing against the Northwind DB. I created a simple variable called "myVariable" and I assigned it the character "c". I want my SQL query to use...
2
by: nitintiwari | last post by:
pls help In Table X (Of MsAccess DAtabase) Y = Numbers Query = Select Z,Y from X where Y= ? Wherever i pass a var in y it gives me data type mismatch error ] pls help
2
by: Aido82 | last post by:
Hi, this is probably a stupid question. Im trying to declare a varible to have the value of that in a text box when i declare the varible is there a way to give it the value in a text box...
1
by: anniefs | last post by:
hi help me i m so much stuck int he code and i have no time .... i used ASP VBscipt and javascript functions with MS database javascript function add records in MS DB by using ASP vbscript...
3
by: Sachin | last post by:
Hi Folks, I have one query in regarding const varible interpretaion by C/C++ compiler. How Compiler actually differentiate between normal stack varible and const varible during program execution?...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.