467,907 Members | 1,368 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

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

100+
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
Expand|Select|Wrap|Line Numbers
  1. <a href="test.htm?test=100','','height=300,width=300">
Page2
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <param name="test" value=""/>
  4. </head>
  5. <body>
  6. <cfoutput>
  7. #test#
  8. </cfoutput>
  9. </body>
  10. </html>
Jan 9 '08 #1
  • viewed: 1236
Share:
1 Reply
Markus
Expert 4TB
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','','height=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.
Jan 14 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

12 posts views Thread by jeffc | last post: by
193 posts views Thread by Michael B. | last post: by
1 post views Thread by JC - home | last post: by
7 posts views Thread by barrett bonden | last post: by
2 posts views Thread by FP | last post: by
2 posts views Thread by ragged_hippy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.