Jump to content

Miss_Jones

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by Miss_Jones

  1. Like this? <?php $var = 'Some text here!' ?> <html> <body> <form> <h5>Firstname:</h5> <input type="text"> <input type="submit" Value="Click me!"><p><?php echo $var; ?></p> </form> </body> </html> And then i want to change the text in the paragraph when the submit button is clicked
  2. But what do i do if i want to change the variable again under the html code?
  3. Hello I have not been able to find my answer anywhere else, so now i post it here: <html> <body> <p></p> </body> </html> <?php $var = 'Some text here!' ?> My questions is now: How do i get the text in the PHP variable into the HTML paragraph text? The code is on the same page Thanks in advance Jones
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.