Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    bash variable into html


    Greetings,
    im trying to show a variable in a html table but im getting the actual string $VAR2 and not the actual value which is 5. Help please

    <body><h2>$VAR</h2></body>

  2. #2
    hi,

    show entire code, please; as is, it's only HTML.

  3. #3
    you cannot confuse html and bash - what are you trying to achieve? generate a webpage? for that i guess php would be better suited.
    if you are really just doing this at your home computer, there's tools that help you generate html code. you might want to start with html-xml-utils, or python-beautifulsoup.

    you really have to explain what you are trying to achieve.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •