By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,447 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,447 IT Pros & Developers. It's quick & easy.

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

100+
P: 200
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
Share this Question
Share on Google+
1 Reply


Markus
Expert 5K+
P: 6,050
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.