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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • C-man

    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



  • Hayden Kirk

    #2
    Re: How can I pass a varible from php to an html doc?

    That does not make sence...


    "C-man" <iamcleaver@sha w.ca> wrote in message
    news:97qcc.5422 $2H4.908@clgrps 12...[color=blue]
    > 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[/color]
    back?[color=blue]
    >
    > Thanks
    >
    >
    >[/color]


    Comment

    • Markus Ernst

      #3
      Re: How can I pass a varible from php to an html doc?

      "C-man" <iamcleaver@sha w.ca> schrieb im Newsbeitrag
      news:97qcc.5422 $2H4.908@clgrps 12...[color=blue]
      > 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[/color]
      back?[color=blue]
      >[/color]

      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="myvariabl e" 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


      Comment

      • Virgil Green

        #4
        Re: How can I pass a varible from php to an html doc?


        "Hayden Kirk" <spam@spam.co m> wrote in message
        news:Kcrcc.7097 $u%1.748103@new s02.tsnz.net...[color=blue]
        > That does not make sence...[/color]

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

        - Virgil


        Comment

        Working...