
cyberdie
Members-
Content Count
12 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Everything posted by cyberdie
-
Haha I noticed thanks instead of a txt file is it better just to use HTML, what are the pros and cons?
-
Appreciate the comments, although maybe not the patronising one, although that may because I'm not much of a fisherman. Appreciate that the PHP is flawed in terms of refresh of same user, although was just looking for a counter that would act as a guide. Worked it out though as needed to set home page as php and use birbal's include feature. Job Done. (stick of dynamite seems to do just as good a job)
-
Hi guys just wanted a quick fix as I dont know PHP, but all i was looking to do was load the following. I have a file called db.txt which has 0 numeric value and have sourced this code <?php$db = "db.txt"; // The database we created$handle = fopen($db, 'r+') ; // Open the db, read and be able to write to it$data = fread($handle, 512) ; // Get current count from the db$count = $data + 1; // Add in a count since it's being readprint $count; // Display current count on the web pagefseek($handle, 0) ; // Point back to the beginning of the filefwrite($handle, $count) ; // Save the countfclose(
-
I Did the changes as you suggested, although im not sure what is missing, I also supplied a function to allow for an onload event, as to my limited understanding anyway. <script type="text/javascript">function init(){var txt1 = "h47fNaOb-JU";document.getElementById("player").src = "[url="https://www.youtube.com/v/u1zgFlCw8Aw?version=3&feature=player_embedded&autoplay=1&playlist="]https://www.youtube.com/v/u1zgFlCw8Aw?version=3&feature=player_embedded&autoplay=1&playlist="+txt1+",ma9I9VBKPiw&feature=player_embedded[/url]";}window.onload=init;<object style="
-
Trying to create a variable, help please. wnat to be able to replace txt1 with the var youtube ID. <body><p><script>var txt1 = "h47fNaOb-JU";</script><object style="height: 390px; width: 640px"><param name="movie" value="https://www.youtube.com/v/u1zgFlCw8Aw?version=3&feature=player_embedded&autoplay=1&playlist=h47fNaOb-JU,ma9I9VBKPiw&feature=player_embedded"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="https://www.youtube.com/v/u1zgFlCw8Aw?version=3&feature=player_e
-
Ok thanks scientist. This is the basics of what I am trying to do, but as I am new to this I dont know how to copy the content from the table into another table which I would like to be contained within a seperate html page. Also If possible I would like it if the information could be transferred into individual textboxes instead of another table. But if not possible then a table will do. Thanks <body><div id="JohnsDetails"> <table width="400" border="0" cellspacing="2" cellpadding="2"> <caption align="top"> Johns Details </caption> <tr> <
-
Haha what is it then? And what is best to use for it?
-
Hi,Is there a way to click a link and have the values transferred into a list of textboxes labelled eg textbox1 through to textbox10?
-
I am using Dreamweaver to design and as I am a novice to web design and currently looking to learn, I am hoping for some assistance. 1. I want to know how you can create a textbox / input box on a webpage that would allow a viewer / user to enter a website and then click submit and then that website would load in a seperate window - similar to your current address bar attached to any browser but only I would need it to load using my created site. 2. How easy is it to enter this code in something like dreamweaver for e.g? 3. Is it better to have a seperate e.g. .php page that has all the coding