The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> need help with HREF statements with Variables, changing a variable in an HREF statement
post Apr 26 2009, 03:13 AM
Post #1

Group: Members
Posts: 1
Joined: 26-April 09
Member No.: 8,438

I am trying to work with an application called EventGhost which will let me control my home theatre stuff through my computer. As part of the functionality, there is a Webserver portion so i can build a web page and access it from all my computers and be able to control my TV or DVD player. The problem is that the Webserver takes the webpage call and "catches" it as a trigger. When i try to create a button, i am only able to click on the button once and then it stops working since my web browser is caching the page information. If i hit refresh it will send the command again to the application.

/////<td width="30"><a href="eventghost1.html?Example-Device_ON&Number=1"><img border="0" src="lamp-on.png"></a></td>

what i need help doing is getting the portion of this href call that is Number=1 to be a variable so if it was in C it would just be Number=X; or something like that. i figured out a work around for the problem by just incrementing that number everytime the page is called. I just dont know how to put a variable in this line of HTML so that i can increment it someplace else in the code. I really suck at HTML so any help would be greatly appreciated

hopefully my request is making sense to everyone.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 23rd June 2018 - 03:09 AM