Some help on defining & passing a parameter in text HTML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ismailc
    New Member
    • Sep 2006
    • 200

    Some help on defining & passing a parameter in text HTML?

    Hi, I need help please

    i usually code in coldfusion but now i want to create 2 text html files where i pass a parameter on href?

    This normally works in coldfusion!

    Page1
    [CODE=html]<a href="test.htm? test=100','','h eight=300,width =300">[/CODE]
    Page2
    [CODE=html]<html>
    <head>
    <param name="test" value=""/>
    </head>
    <body>
    <cfoutput>
    #test#
    </cfoutput>
    </body>
    </html>[/CODE]
    Last edited by eWish; Jan 14 '08, 04:29 PM. Reason: Added Code Tags
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by ismailc
    Hi, I need help please

    i usually code in coldfusion but now i want to create 2 text html files where i pass a parameter on href?

    This normally works in coldfusion!

    Page1
    <a href="test.htm? test=100','','h eight=300,width =300">

    Page2
    <html>
    <head>
    <param name="test" value=""/>
    </head>
    <body>
    <cfoutput>
    #test#
    </cfoutput>
    </body>
    </html>
    You can't do that with HTML: you need to use something like PHP or JavaScript - both have GET functions which get the parameters from the url.

    Comment

    Working...