Jump to content

antonyfal

Members
  • Posts

    172
  • Joined

  • Last visited

Everything posted by antonyfal

  1. thanks for that: i tried the in the first attempt and my last one i tried . Can you take a crack at solving this one for me? do you have any ideas why the cookie function is not working? is it because the files are in folder's apart? or maybe because they are in different apps? please i need to get this working.. im still battling with it. best regards antony
  2. i just put an edited version here, maybe it would be easier to read: i place the cookie with this code: <script type="text/javascript"> document.cookie ="todaysfiles=1"; </script> both pages are .html files // here is page that looks for cookie <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><appmail:object name="pagetitle" /></title> <appmail:include file="/includes/links.html" /> <script type="text/javascript"> // here is the cookie check funtion function checkregCookie() { registeredDiv=document.getElementById("registered"); unregisteredDiv=document.getElementById("unregistered"); if (document.cookie.indexOf("todaysfiles")!=-1) { registeredDiv.style.display="block"; unregisteredDiv.style.display="none"; } else { registeredDiv.style.display="none"; unregisteredDiv.style.display="block"; } } </script> //cookie check funtion ends here </head> <body> <!-- Here's the "registered" DIV element // start of registered div object It doesn't display until the cookie is set --> <div id="registered" style="display:none"> <div id="taskbar"></div> <img src="/images/appmail_logo.png" border="0" alt="<appmail:object name='productname' />" hspace="10" /> <appmail:object name="message" id="message" /> <div id="login-form"> <div class="boxtitle"><appmail:label name="register.sign_up" /></div> <div class="boxcontent"> <form name="registerform" action="./?_action=register" method="post"> <input type="hidden" name="_user" value="" /> <input type="hidden" name="_action" value="login" /> <input type="hidden" id="rcmlogintz" name="_timezone" value="_default_" /> <input type="hidden" name="_url" value="_task=mail" /> <input type="hidden" name="_host" value="<appmail:var name="config:default_host" />" /> <input type="hidden" name="_login_lang" value="<appmail:var name="session:language" />" /> <table> <appmail:object name="domaingroups" /> <tr> <td align="right" class="title"><appmail:label name='register.email' /> <input size="15" class="focus" name="_username" autocomplete="off" type="text" value="<appmail:var name='request:_username' />"><span> @</span></td> <td> <appmail:object name="domainselector" /> </td> </tr> <tr> <td class="title" nowrap><appmail:label name='register.password' /></td> <td nowrap> <input name="_pass" type="password"> </td> </tr> <tr> <td class="title" nowrap><appmail:label name='register.confirm_password' /></td> <td nowrap> <input name="_confirm_pass" type="password"> </td> </tr> </table> <p style="text-align:center;"><appmail:button command="plugin.register-save" id="register_submit" type="input" class="button mainaction" label="register.sign_up" /> <span> </span> <input onclick="document.location.href='./'" type="button" class="button" value="<appmail:label name='register.back' />" /></p> </form> </div> </div> <div> // end of registered div object <!-- Here's the "unregistered" DIV element --> // here is start of unregistered div object <div id="unregistered" style="display:none; text-align:center;"> <font color="#ff0033"><b>You do not have permission to access this Area.<br>Please Login and try again.<b></font> </div> <script type="text/javascript"> //check for the cookie and display DIV checkregCookie(); </script> // unregistered div object ends here <script type="text/javascript"> var d = new Date(); document.getElementById("rcmlogintz").value = (d.getTimezoneOffset() / 60) * -1; </script> </body> </html>
  3. Hi, I had this little script setup before and it worked like a charm, even posted in this forum for others. I am now trying to apply it somewhere else on my site and it doesn't work now!?. What happens is i load a cookie with X name and then this will detect the cookie and load the one div and close the other div, if no cookie then the opposite happens.. Below: if the cookie exists then the div id="registerd" should be display block, and unregistered should be display none.. Im getting no display at all and when i check, the cookie is set. //to note: maybe it makes a diiference, but the file placing the cookie is in another folder on the server? IE: folder/folder/folder/folder and the file looking for the cookie is in folder2/folder2/folder/folder2... Just for example.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><appmail:object name="pagetitle" /></title> <appmail:include file="/includes/links.html" /> <script type="text/javascript"> function checkregCookie() { registeredDiv=document.getElementById("registered"); unregisteredDiv=document.getElementById("unregistered"); if (document.cookie.indexOf("todaysfiles")!=-1) { registeredDiv.style.display="block"; unregisteredDiv.style.display="none"; } else { registeredDiv.style.display="none"; unregisteredDiv.style.display="block"; } } </script> </head> <body> <!-- Here's the "registered" DIV element It doesn't display until the cookie is set --> <div id="registered" style="display:none"> <div id="taskbar"></div> <img src="/images/appmail_logo.png" border="0" alt="<appmail:object name='productname' />" hspace="10" /> <appmail:object name="message" id="message" /> <div id="login-form"> <div class="boxtitle"><appmail:label name="register.sign_up" /></div> <div class="boxcontent"> <form name="registerform" action="./?_action=register" method="post"> <input type="hidden" name="_user" value="" /> <input type="hidden" name="_action" value="login" /> <input type="hidden" id="rcmlogintz" name="_timezone" value="_default_" /> <input type="hidden" name="_url" value="_task=mail" /> <input type="hidden" name="_host" value="<appmail:var name="config:default_host" />" /> <input type="hidden" name="_login_lang" value="<appmail:var name="session:language" />" /> <table> <appmail:object name="domaingroups" /> <tr> <td align="right" class="title"><appmail:label name='register.email' /> <input size="15" class="focus" name="_username" autocomplete="off" type="text" value="<appmail:var name='request:_username' />"><span> @</span></td> <td> <appmail:object name="domainselector" /> </td> </tr> <tr> <td class="title" nowrap><appmail:label name='register.password' /></td> <td nowrap> <input name="_pass" type="password"> </td> </tr> <tr> <td class="title" nowrap><appmail:label name='register.confirm_password' /></td> <td nowrap> <input name="_confirm_pass" type="password"> </td> </tr> </table> <p style="text-align:center;"><appmail:button command="plugin.register-save" id="register_submit" type="input" class="button mainaction" label="register.sign_up" /> <span> </span> <input onclick="document.location.href='./'" type="button" class="button" value="<appmail:label name='register.back' />" /></p> </form> </div> </div> <div> <!-- Here's the "unregistered" DIV element --> <div id="unregistered" style="display:none; text-align:center;"> <font color="#ff0033"><b>You do not have permission to access this Area.<br>Please Login and try again.<b></font> </div> <script type="text/javascript"> //check for the cookie and display DIV checkregCookie(); </script> <script type="text/javascript"> var d = new Date(); document.getElementById("rcmlogintz").value = (d.getTimezoneOffset() / 60) * -1; </script> </body> </html>
  4. solved it .. i wrote the final line like so: //basically un-comented all the double and single quotes.. and started with and ended with a double quote var text_online = "<a href=\"javascript:void(0);\" onClick=\"dhtmlwindow.open(\''.$profile_username.'box\', \'iframe\', \'http://www.google.com/\', \''.$profile_name.'\', \'width=224px,height=237px,left=200px,top=150px,resize=0,scrolling=0,center=1\');\"><img src=\"http://www.mydomain.com/'.$thisfolder.'/globalchat/img/chat_is_open1.png\"></a>";
  5. OK!! i made tons of progress: i removed the <!-- START PROFILECHAT CODE --> and <!-- END PROFILECHAT CODE --> this indicated html --- i also remove the extra // removed this one <div> <div id="online"> and then changed all the ' to " on this line: var text_online = \'<a href="javascript:void(0);" onClick="dhtmlwindow.open("'.$profile_username.'box", "iframe", "http://www.google.com/", "'.$profile_name.'", "width=224px,height=237px,left=200px,top=150px,resize=0,scrolling=0,center=1");"><img src="http://www.mydomain.com/'.$thisfolder.'/globalchat/img/chat_is_open1.png"></a>\'; // im using the iframe as example with a google link... // the progress i made is: my online off line chat indicator works perfectly, the only problem im having now is the "onClick" its not working.. with single quotes i get erros, with double quotes i dont get errors, am i missing something on this line? //its a echo javascript in a php file.. to note: all links are as they should be, and all includes are all in place, i have also tried moving them all aswell, but it didnt work.
  6. Thaks for the reply: the "viewprofile" without the "$" also works but i did change it to a Variable, it is actually just a word in the url. My main problem is is with "echo" function. Im not familliar with it really. i use pat templates and the $output['whatever'] to html . . the piec of the puzzle above giving me hassle is this, to me now its just one big mess. i "\" and changed """ and "'" and ";" .. but i cant get it to echo and work... in the above code the fist is the ad_this_share that works the second code, the index2.php, calls to the users mailing list, that works too, just this bellow which is not outputting properly.. <div> <!-- START PROFILECHAT CODE --> <div id="div_chatonline">Loading....</div> <script type="text/javascript"> var new_window = false; //(new window: true or false) var url_destination = \'http://www.domainname.com/'.$thisfolder.'/globalchat/'.$profile_username.'/'.$profile_email2.'/chat/\'; var url_adjuster = \'http://www.domainname.com/'.$thisfolder.'/globalchat/'.$profile_username.'/'.$profile_email2.'/chat/\'; var text_online = \'<a href="javascript:void(0);" onClick="dhtmlwindow.open(\''.$profile_username.boxes'\', \'div\', \''.$profile_username.'\', \''.$profile_contactperson.'\', \'width=224,height=237,left=200,top=150,resize=0,scrolling=0,center=1\'); return false"><img src="\'.$thisurl.\'globalchat/img/chat_is_open1.png" alt="CHAT ONLINE" width="89px" height="19px"></a>\'; document.write(\'<\' + \'script type="text/javascript" src="http://www.domainname.com/'.$thisfolder.'/globalchat/'.$profile_username.'/'.$profile_email2.'/chat/chat.js"></\' + \'script>\'); </script> <!-- END PROFILECHAT CODE --> </div> </td></tr></table>';
  7. Hi, i got this code script im formulating. It supposed to run three applets in a row, only two of the three are working. The third applet calls to my chat script which i get working perfectly on an html file, but i would like to move it to my add_this_sharing.php file code to conserve space on my Page. So i have moved the code from an html file to a php file, i been at it on and off for 4 days now.. I get syntax errors, and when i get the page to open without syntax errors and everything seems fine in the source code, the chat app is not called and the error output is not shown.. IE: if there is a communication error between the call of the script and the execution of the script the div content will be displayed : "Loading...." - but that is not happening either.. // im guessing and have a good feeling that it is with the echo! that something is wrong, i have also tried every combanation of " " " &" ' " i could think of but not working.. here is my code: <?php //from here to $currenturl = $_SERVER['REQUEST_URI']; $newurl = explode("/", $currenturl); $url2 = $_SERVER['HTTP_HOST']; $thisfolder=$newurl[1]; $thisurl= 'http://'.$url2.'/'.$newurl[1].'/'; $myurls = 'http://'.$url2.'/'.$newurl[1].'/'.viewprofile.'/'.$profile_name.'/'.$profile_id.'.'.html; $thissite= 'http://'.$url2.'/'; echo '<table><tr><td valign="bottom" style="background-color:transparent; width:50%; height:23px; text-align:left;"> <!-- AddThis Button BEGIN --> <script type="text/javascript">addthis_pub = \'davidp13\';</script> <a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, \'\', \''.$myurls.'\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="'.$thissite.'/js/share.png" width="125" height="33" border="0" alt="" /></a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script> <!-- AddThis Button END --></td><td valign="bottom" style="background-color:transparent; width:50%; height:23px;text-align:right;"><div> <iframe scrolling="no" height="23px" frameborder="0" width="345px" src="'.$thisurl.'mailinglist/'.$profile_username.'/'.$profile_email2.'/index2.php"></iframe></div></td> <td> //here everything works <div> //from here down i cant get anything to run properly--- <!-- START PROFILECHAT CODE --> <div id="div_chatonline">Loading....</div> <script type="text/javascript"> var new_window = false; //(new window: true or false) var url_destination = \'http://www.domainname.com/'.$thisfolder.'/chat/'.$profile_username.'/'.$profile_email2.'/chat/\'; var url_adjuster = \'http://www.domainname.com/'.$thisfolder.'/chat/'.$profile_username.'/'.$profile_email2.'/chat/\'; var text_online = \'<a href="javascript:void(0);" onClick="dhtmlwindow.open(\''.$profile_username.boxes'\', \'div\', \''.$profile_username.'\', \''.$profile_contactperson.'\', \'width=224,height=237,left=200,top=150,resize=0,scrolling=0,center=1\'); return false"><img src="\'.$thisurl.\'chat/img/chat_is_open1.png" alt="CHAT ONLINE" width="89px" height="19px"></a>\'; document.write(\'<\' + \'script type="text/javascript" src="http://www.domainname.com/'.$thisfolder.'/chat/'.$profile_username.'/'.$profile_email2.'/chat/chat.js"></\' + \'script>\'); </script> <!-- END PROFILECHAT CODE --> </div> </td></tr></table>'; } function getRetVals() { return null; } } ?>
  8. I had to post this further update here: the problem above occured because Mozilla didnt like the [""] and the [''] in the php cookie function and kicked the illegal variable. It seems that IE didnt like my Javascript for placing the cookie, with the output php variable and also kicked the illegal variable error.. if you want to use this code for whatever i now use the following javascript in my html file to place the cookie: // it seems that it did not like the {OUTPUT} direct into the cookie function so i had to first create a "var" and then enter it into the cookie function- - all works perfectly now. <script type="text/javascript"> var word_username = "{THECOOKIE}"; var Values ="1"; document.cookie =word_username+"="+Values; </script>
  9. Hi Spiderwell, I did try it with ["$cookie"] (double quotes) but that is when it began kicking the error, and everytime since. I did clear all my cache and ... I think it has something to do with the way i call the $cook - - from the URL? maybe i'm stuck with this one.. OR did you mean that i should write it like this: [$cook] ??
  10. sorry man i moved it to the php forum. it was a complete accident it landed here. In my defense, i was on my second day of pink eye's...
  11. Hi a get a server error with this code, this worked for awhile, now it doesn't work. I use the first part to extract the user name from the url. then parse it to the IF cookie function as a variable for the cookie name. The cookie is placed on another html page and i placed it like this: <script language="javascript"> document.cookie = "{PROFILE_USERNAME}= 1"; </script> // this code works perfectly i used php to parser the variable to the javascript function, when i check the browser for cookies, it is placed correctly. this code i use to check the cookie's name to see if it exists. the variable below is taken from the url, and matches the username above, but when i execute the code i get this error: Illegal variable _files or _env or _get or _post or _cookie or _server or _session or globals passed to script. can anyone see the problem? <?php $url = $_SERVER['SCRIPT_FILENAME']; $newurl = explode("/", $url); $profmanager=$newurl[6]; $cook= $profmanager; if(!isset($_COOKIE['$cook'])) { $url2 = $_SERVER['HTTP_HOST']; $myurls = 'http://'.$url2.'/'; echo "<META HTTP-EQUIV=Refresh CONTENT=\"0;URL=$myurls\">"; } else { my page code here }?> // to note when i echo the $newurl[6] it does equal the username. the first code in on a html page/the javascript above, // the second code piece is AT THE TOP of a php page. // if there is a better way, liike matching values instead of the cookie name, i would be keen to see it in action.
  12. this worked for awhile, now it doesnt work: <?php $url = $_SERVER['SCRIPT_FILENAME']; $newurl = explode("/", $url); $profmanager=$newurl[6]; $cook= $profmanager; if(!isset($_COOKIE['$cook'])) { $url2 = $_SERVER['HTTP_HOST']; $myurls = 'http://'.$url2.'/'; echo "<META HTTP-EQUIV=Refresh CONTENT=\"0;URL=$myurls\">"; } else { my page code here }?>
  13. hi just posting results from the query above: it took me awhile to discover that the setting cookie above was a javascript code . but here is my final post: i used this code to post the cookie, i used this on a html page: // i did use a variable of the usersname instead of the "1" below.. but for the purpose of the reply i just posted the "1" value <script language="javascript"> document.cookie = "letsChat= 1;" </script> then on the php page i posted this code: // this code checks if the cookie is available, if there is no cookie redirects the user to your main domain: ie: www.xxxxx.com <?php if(!isset($_COOKIE['letsChat'])) { $url2 = $_SERVER['HTTP_HOST']; $myurls = 'http://'.$url2.'/'; echo "<META HTTP-EQUIV=Refresh CONTENT=\"0;URL=$myurls\">"; } else { what ever here // your normal page can go in here. } ?> // javascript version for html page, below is an example of how i used it for Div's.. <script type="text/javascript"> function checkCookie() { //check if cookie includes "letsChat" if (document.cookie.indexOf("letsChat")!=-1) { //if it does (not false), display what you want here, could be redirect or div or page } else { if it doesnot exist place what you want here.. } </script> // here is a javascript version for html to html pages, this took me a little work to figure out, so i know it will help someone . . i used this to check for a cookie, if the cookie exists show a div, if it does not exist show another different div. <script type="text/javascript"> function checkCookie() { //establish DIV object to manipulate onlineDiv=document.getElementById("online"); offlineDiv=document.getElementById("offline"); //check if cookie includes "letsChat" if (document.cookie.indexOf("letsChat")!=-1) { //if it does (not false), display the DIV object onlineDiv.style.display="block"; offlineDiv.style.display="none"; } else { onlineDiv.style.display="none"; offlineDiv.style.display="block"; } } </script> <body> <!-- Here's the "content" DIV element It doesn't display until the cookie is set --> <div id="online" style="display:none">online here..</div> <!-- Here's the "menu" DIV element --> <div id="offline" style="display:none">offline here...</div> <script type="text/javascript"> //check for the cookie and display DIV or set cookie checkCookie(); </script> </body> // hope you can find this useful.. and thanks for all the help i got.
  14. Im trying to toggle hide/show of 2 div's on a page based on if a cookie is available or not, This is not working just shows a blank on html page through browser view... what is supposed to happen is: if the cookie exists, the online div must show, and the offline div should be hidden.... if there is no cookie, then the online should be hidden and the offline should show.. Here is my code: // i use this to set a cookie: <script language="javascript"> document.cookie = "letsChat= 1"; </script> // this to check if exists... was given to me by Omiran... <script type="text/javascript"> function isCookieSet(letsChat) { var foo = document.cookie.split("="); for (key in foo) { if (foo[key] == letsChat) { return true }; } return false; } </script> //and this to hide show the html div's <script type="text/javascript"> var online = document.getElementById("online"); var offline = document.getElementById("offline"); if(isSetCookie("letsChat")){ online.style.display = "vissible"; offline.style.display = "none"; } else { online.style.display = "none"; offline.style.display = "vissible"; } </script> // here is my html <td> <div id="online" style="display:none; width:89px; height:19px" ><a href="javascript:void(0);" onClick="window.open('{EMAIL2}', 'iframe', 'http://www.xxxxxxxx.com/subfolder/chat/{USERNAME}/{EMAIL2}/chat/xxxxxxx_window.html', '{EMAIL2}', 'width=224px,height=237px,resize=0,scrolling=0,center=1');"><font color="#ff0033"><b>CHAT ONLINE</b></font></a></div> <div id="offline" style="display:none; width:89px; height:19px; background-color:transparent;"><font color="#ffffff"><b>CHAT OFFLINE</b></font><div> </td> when i run the html through the browser there is just a blank nothing happens and there are no error messages either..
  15. lol what Jedi mind tricks?! give me some of that European stuff :'( , i live in south africa, but im Polish thanks again for the code man! Omiran. Awesome! T
  16. Awesome!! lank (lank = south african slang word for many) people have helped me in this forum! glad i could help someone in return..
  17. Ta! Omirion. I got a good idea how it should work from your code.. nice example just this part: isCookieSet('YourValue') ??? How can i write it into the code above? if true return first div, otherwise return other div? Hey i tell you!! the simplest thing, can get so complex!! like this little thing has set me back 3 days, and when i get it will boost me to nearly finished:D.., I'm new at cookies but i just learn't the value of them and how useful and simplistic they are to apply... I would say that this is cookies 1 o 1.. if you or someone can show how to apply this directly to the php example above so i can see it in action with the html in between.. Then all my pieces of puzzle will fall together!! and you will be responsible:'D.. Thanks for this reply.. Tony
  18. //sorry i mean this script: <script language="javascript"> document.cookie = "letsChat= 1;" </script> this is probably easy for someone out there, i think you looking at it saying!! "why bother", but my javascript is like my Chinese--- just not there!
  19. Hey i see you got an answer! here is something i did when i had the same issue as you, although tis code is long, its easier to edit then the example you had: // copy the code as is, save to an html page open with browser and test-- you can change the variable as you wish.. <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"><!-- function changeSizes(which) { for (var i = 0; i<document.clothes.elements.length; i++) { if ((document.clothes.elements.type == 'select-one')) { document.clothes.elements.selectedIndex = which; } } } // --> </script> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"><!-- function changeShoes(which) { for (var i = 0; i<document.shoes.elements.length; i++) { if ((document.shoes.elements.type == 'select-one')) { document.shoes.elements.selectedIndex = which; } } } // --> </script> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> function inCm(form) { ht=form.ht.value; if((ht==null)||(ht=="")||(isNaN(ht))){ form.answer.value="?"; form.show.value="?"; alert('Please enter a length with numbers only. Use a period for decimal place.'); form.ht.focus(); form.ht.select(); return false; } if (form.choice[0].checked){ var answer= ht * 0.3937008; var round=Math.round(10*answer)/10; var text1=" cm = "; var text2=" in"; var text3=" centimeters multiplied by 0.3937008 = "; var text4=" inches."; form.answer.value=ht + text1 + round + text2; form.show.value= ht+ text3 + round + text4; } if (form.choice[1].checked){ var answer=ht * 2.54; var round=Math.round(10*answer)/10; text1=" in = "; text2=" cm"; text3=" inches multiplied by 2.54 = "; text4=" centimeters."; form.answer.value=ht + text1 + round + text2; form.show.value= ht + text3 + round + text4; } } function lbsKg(form) {wt=form.wt.value;if((wt==null)||(wt=="")||(isNaN(wt))){form.answer.value="?";form.show.value="?";alert('Please enter a weight with numbers only. Use a period for decimal place.');form.wt.focus();form.wt.select();return false;}if (form.choice[0].checked){var answer= wt / 2.2;var round=Math.round(10*answer)/10;var text1=" lbs = ";var text2=" kg";var text3=" pounds divided by 2.2 = ";var text4=" kilograms.";form.answer.value=wt + text1 + round + text2;form.show.value= wt+ text3 + round + text4;}if (form.choice[1].checked){var answer=wt * 2.2;var round=Math.round(10*answer)/10;text1=" kg = ";text2=" lbs";text3=" kilograms multiplied by 2.2 = ";text4=" pounds.";form.answer.value=wt + text1 + round + text2;form.show.value= wt + text3 + round + text4; } } </script> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> function forward() { with (document.convertcmtoft) { unit1.value = unit1.value.toString().replace(/[^\d\.eE-]/g,''); if (unit1.value*0.0328083989501 != 0) unit2.value = unit1.value*0.0328083989501; } } function backward() { with (document.convertcmtoft) { unit2.value = unit2.value.toString().replace(/[^\d\.eE-]/g,''); if (unit2.value/0.0328083989501 != 0) unit1.value = unit2.value/0.0328083989501; } } </script> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> function changeBra(which) { for (var i = 0; i<document.bra.elements.length; i++) { if ((document.bra.elements.type == 'select-one')) { document.bra.elements.selectedIndex = which; } } } </script> <div style="background-color:#444444"> <center> <table> <tr> <td><br></td> </tr> </table> <form name="htForm"> <table cellspacing="0" cellpadding="0" border="1" bordercolordark="#ff0000" bgcolor="#FFD500"> <tbody> <tr> <td><font color="#000000;">Convert cm to inches or inches to cm:</td> </tr><tr> <td> <table cellspacing="0" cellpadding="2" border="0"> <tbody><tr><td><b>enter length</b></td><td> <input type="text" size="5" name="ht"> </td><td><b>convert to inches</b></td><td> <input type="radio" name="choice" checked="" value="0"> </td><td><b>or cm</b></td><td> <input type="radio" name="choice" value="1"> </td><td><b>result</b></td><td><input value="click for answer" style="background-color: rgb(192, 192, 192);" size="15" name="answer"> </td><td align="middle" colspan="2"><input type="button" ;="" value="convert" onclick="inCm(this.form)"> </td></tr> </tbody></table></td> </form> <table> <tr> <td><br></td> </tr> </table> <form name="convertcmtoft"> <table cellspacing="0" cellpadding="0" border="1" bordercolordark="#ff0000" bgcolor="#FFD500"> <tbody> <tr> <td><font color="#000000;">Convert cm to feet and inches or feet inches to cm:</td> </tr><tr> <td> <table cellspacing="0" cellpadding="2" border="0"> <tbody><tr><td><b>enter cm</b> </td><td><b><input type=text name="unit1" size=15 maxlength=100 onBlur="forward()" value=""> </td><td><b>or feet/inch</b> </td><td><input type=text name="unit2" size=22 maxlength=100 onBlur="backward()" value=""> </td><td><big><strong>then click</strong></big></td><td> <input type=button value="Convert!" onClick="forward()"></strong></big> </td></tr> </tbody></table></td> </form> <table> <tr> <td><br></td> </tr> </table> <form name="wtForm"> <table cellspacing="0" cellpadding="0" border="1" bordercolordark="#ff0000" bgcolor="#79FF00"> <tbody> <tr> <td><font color="#000000;">Convert kgs to lbs or lbs to kgs:</td> </tr><tr> <td> <table cellspacing="0" cellpadding="2" border="0"> <tbody><tr><td><b>enter weight</b></td><td> <input type="text" size="5" name="wt"> </td><td><b>convert to kgs</b></td><td> <input type="radio" name="choice" checked="" value="0"> </td><td><b>or lbs</b></td><td> <input type="radio" name="choice" value="1"> </td><td><b>result</b></td><td><input value="click for answer" style="background-color: rgb(192, 192, 192);" size="17" name="answer"> </td><td align="middle" colspan="2"><input type="button" ;="" value="convert" onclick="lbsKg(this.form)"> </td></tr> </tbody></table></td> </form> <table> <tr> <td><br></td> </tr> </table> <form name="clothes"> <center><table cellspacing="0" cellpadding="3" border="1" bordercolordark="#ff0000" bgcolor="#ffff00"> <tbody> <tr> <td><font color="#000000;">Get the US dresssize:</td> </tr><tr> <td align="center"><font size="2">U.S.</font></td> <td align="center"><font size="2">U.S. (named sizes)</font></td> <td align="center"><font size="2">U.K.</font></td> <td align="center"><font size="2">France</font></td> <td align="center"><font size="2">Germany</font></td> <td align="center"><font size="2">Italy</font></td> <td align="center"><font size="2">Australia</font></td> <td align="center"><font size="2">Japan</font></td> </tr> <tr> <td align="center"><select onchange="changeSizes(this.selectedIndex);" size="1" name="USA"> <option>2</option> <option>4</option> <option>6</option> <option>8</option> <option>10</option> <option>12</option> <option>14</option> <option>16</option> <option>18</option> <option>20</option> <option>22</option> <option>24</option> </select></td> <td align="center"><select onchange="changeSizes(this.selectedIndex);" size="1" name="USA_Named"> <option>X-Small</option> <option>X-Small/Small</option> <option>Small</option> <option>Medium</option> <option>Medium</option> <option>Large</option> <option>Large/X-Large</option> <option>X-Large/1X</option> <option>1X/2X</option> <option>2X</option> <option>3X</option> <option>3X</option> </select></td> <td align="center"><select onchange="changeSizes(this.selectedIndex);" size="1" name="UK"> <option>4</option> <option>6</option> <option>8</option> <option>10</option> <option>12</option> <option>14</option> <option>16</option> <option>18</option> <option>20</option> <option>22</option> <option>24</option> <option>26</option> </select></td> <td align="center"><select onchange="changeSizes(this.selectedIndex);" size="1" name="France"> <option>32</option> <option>34</option> <option>36</option> <option>38</option> <option>40</option> <option>42</option> <option>44</option> <option>46</option> <option>50</option> <option>52</option> <option>54</option> <option>56</option> </select></td> <td align="center"><select onchange="changeSizes(this.selectedIndex);" size="1" name="Germany"> <option>30</option> <option>32</option> <option>34</option> <option>36</option> <option>38</option> <option>40</option> <option>42</option> <option>44</option> <option>46</option> <option>48</option> <option>50</option> <option>52</option> </select></td> <td align="center"><select onchange="changeSizes(this.selectedIndex);" size="1" name="Italy"> <option>36</option> <option>38</option> <option>40</option> <option>42</option> <option>44</option> <option>46</option> <option>48</option> <option>50</option> <option>52</option> <option>54</option> <option>56</option> <option>58</option> </select></td> <td align="center"><select onchange="changeSizes(this.selectedIndex);" size="1" name="Australia"> <option>6</option> <option>8</option> <option>10</option> <option>12</option> <option>14</option> <option>16</option> <option>18</option> <option>20</option> <option>22</option> <option>24</option> <option>26</option> <option>28</option> </select></td> <td align="center"><select onchange="changeSizes(this.selectedIndex);" size="1" name="Japan"> <option>5</option> <option>7</option> <option>9</option> <option>11</option> <option>13</option> <option>15</option> <option>17</option> <option>19</option> <option>21</option> <option>23</option> <option>25</option> <option>27</option> </select></td> </tr> </tbody></table> </center> </form><br><form name="bra"> <table cellspacing="0" cellpadding="3" border="1" bordercolordark="#ff0000" bgcolor="#ffff00"> <tbody> <tr> <td><font color="#000000;">Get the US Brasize:</td> </tr> <tr> <td align="center"><font size="2">U.S.</font></td> <td align="center"><font size="2">U.K</font></td> <td align="center"><font size="2">AUS/NZ</font></td> <td align="center"><font size="2">EU/JAP</font></td> <td align="center"><font size="2">Belg/Spain/France/Port</font></td> <td align="center"><font size="2">Ital/Czeck</font></td> </tr> <tr> <td align="center"><select onchange="changeBra(this.selectedIndex);" size="1" name="US"> <option >30AA</option> <option >30A</option> <option >30B</option> <option >30C</option> <option >30D</option> <option >30DD</option> <option >30DDD/E</option> <option >30F</option> <option >30G</option> <option >30H</option> <option >30I</option> <option >32AA</option> <option >32A</option> <option >32B</option> <option >32C</option> <option >32D</option> <option >32DD</option> <option >32DDD/E</option> <option >32F</option> <option >32G</option> <option >32H</option> <option >32I</option> <option >34AA</option> <option >34A</option> <option >34B</option> <option >34C</option> <option >34D</option> <option >34DD</option> <option >34DDD/E</option> <option >34F</option> <option >34G</option> <option >34H</option> <option >34I</option> <option >36AA</option> <option >36A</option> <option >36B</option> <option >36C</option> <option >36D</option> <option >36DD</option> <option >36DDD/E</option> <option >36F</option> <option >36G</option> <option >36H</option> <option >36I</option> <option >38AA</option> <option >38A</option> <option >38B</option> <option >38C</option> <option >38D</option> <option >38DD</option> <option >38DDD/E</option> <option >38F</option> <option >38G</option> <option >38H</option> <option >38I</option> <option >40AA</option> <option >40A</option> <option >40B</option> <option >40C</option> <option >40D</option> <option >40DD</option> <option >40DDD/E</option> <option >40F</option> <option >40G</option> <option >40H</option> <option >40I</option> <option >42AA</option> <option >42A</option> <option >42B</option> <option >42C</option> <option >42D</option> <option >42DD</option> <option >42DDD/E</option> <option >42F</option> <option >42G</option> <option >42H</option> <option >42I</option> <option >44AA</option> <option >44A</option> <option >44B</option> <option >44C</option> <option >44D</option> <option >44DD</option> <option >44DDD/E</option> <option >44F</option> <option >44G</option> <option >44H</option> <option >44I</option> </select></td> <td align="center"><select onchange="changeBra(this.selectedIndex);" size="1" name="UK"> <option >30A</option> <option >30B</option> <option >30C</option> <option >30D</option> <option >30DD</option> <option >30E</option> <option >30F</option> <option >30G</option> <option >30H</option> <option >30I</option> <option >30J</option> <option >32A</option> <option >32B</option> <option >32C</option> <option >32D</option> <option >32DD</option> <option >32E</option> <option >32F</option> <option >32G</option> <option >32H</option> <option >32I</option> <option >32J</option> <option >34A</option> <option >34B</option> <option >34C</option> <option >34D</option> <option >34DD</option> <option >34E</option> <option >34F</option> <option >34G</option> <option >34H</option> <option >34I</option> <option >34J</option> <option >36A</option> <option >36B</option> <option >36C</option> <option >36D</option> <option >36DD</option> <option >36E</option> <option >36F</option> <option >36G</option> <option >36H</option> <option >36I</option> <option >36J</option> <option >38A</option> <option >38B</option> <option >38C</option> <option >38D</option> <option >38DD</option> <option >38E</option> <option >38F</option> <option >38G</option> <option >38H</option> <option >38I</option> <option >38J</option> <option >40A</option> <option >40B</option> <option >40C</option> <option >40D</option> <option >40DD</option> <option >40E</option> <option >40F</option> <option >40G</option> <option >40H</option> <option >40I</option> <option >40J</option> <option >42A</option> <option >42B</option> <option >42C</option> <option >42D</option> <option >42DD</option> <option >42E</option> <option >42F</option> <option >42G</option> <option >42H</option> <option >42I</option> <option >42J</option> <option >44A</option> <option >44B</option> <option >44C</option> <option >44D</option> <option >44DD</option> <option >44E</option> <option >44F</option> <option >44G</option> <option >44H</option> <option >44I</option> <option >44J</option> </select></td> <td align="center"><select onchange="changeBra(this.selectedIndex);" size="1" name="NZ"> <option >8AA</option> <option >8A</option> <option >8B</option> <option >8C</option> <option >8D</option> <option >8DD</option> <option >8E</option> <option >8F</option> <option >8G</option> <option >8H</option> <option >8I</option> <option >10AA</option> <option >10A</option> <option >10B</option> <option >10C</option> <option >10D</option> <option >10DD</option> <option >10E</option> <option >10F</option> <option >10G</option> <option >10H</option> <option >10I</option> <option >12AA</option> <option >12A</option> <option >12B</option> <option >12C</option> <option >12D</option> <option >12DD</option> <option >12E</option> <option >12F</option> <option >12G</option> <option >12H</option> <option >12I</option> <option >14AA</option> <option >14A</option> <option >14B</option> <option >14C</option> <option >14D</option> <option >14DD</option> <option >14E</option> <option >14F</option> <option >14G</option> <option >14H</option> <option >14I</option> <option >16AA</option> <option >16A</option> <option >16B</option> <option >16C</option> <option >16D</option> <option >16DD</option> <option >16E</option> <option >16F</option> <option >16G</option> <option >16H</option> <option >16I</option> <option >18AA</option> <option >18A</option> <option >18B</option> <option >18C</option> <option >18D</option> <option >18DD</option> <option >18E</option> <option >18F</option> <option >18G</option> <option >18H</option> <option >18I</option> <option >20AA</option> <option >20A</option> <option >20B</option> <option >20C</option> <option >20D</option> <option >20DD</option> <option >20E</option> <option >20F</option> <option >20G</option> <option >20H</option> <option >20I</option> <option >22AA</option> <option >22A</option> <option >22B</option> <option >22C</option> <option >22D</option> <option >22DD</option> <option >22E</option> <option >22F</option> <option >22G</option> <option >22H</option> <option >22I</option> </select></td> <td align="center"><select onchange="changeBra(this.selectedIndex);" size="1" name="EU"> <option >65A</option> <option >65B</option> <option >65C</option> <option >65D</option> <option >65E</option> <option >65F</option> <option >65G</option> <option >65H</option> <option >65I</option> <option >65J</option> <option >65K</option> <option >70A</option> <option >70B</option> <option >70C</option> <option >70D</option> <option >70E</option> <option >70F</option> <option >70G</option> <option >70H</option> <option >70I</option> <option >70J</option> <option >70K</option> <option >75A</option> <option >75B</option> <option >75C</option> <option >75D</option> <option >75E</option> <option >75F</option> <option >75G</option> <option >75H</option> <option >75I</option> <option >75J</option> <option >75K</option> <option >80A</option> <option >80B</option> <option >80C</option> <option >80D</option> <option >80E</option> <option >80F</option> <option >80G</option> <option >80H</option> <option >80I</option> <option >80J</option> <option >80K</option> <option >85A</option> <option >85B</option> <option >85C</option> <option >85D</option> <option >85E</option> <option >85F</option> <option >85G</option> <option >85H</option> <option >85I</option> <option >85J</option> <option >85K</option> <option >90A</option> <option >90B</option> <option >90C</option> <option >90D</option> <option >90E</option> <option >90F</option> <option >90G</option> <option >90H</option> <option >90I</option> <option >90J</option> <option >90K</option> <option >95A</option> <option >95B</option> <option >95C</option> <option >95D</option> <option >95E</option> <option >95F</option> <option >95G</option> <option >95H</option> <option >95I</option> <option >95J</option> <option >95K</option> <option >100A</option> <option >100B</option> <option >100C</option> <option >100D</option> <option >100E</option> <option >100F</option> <option >100G</option> <option >100H</option> <option >100I</option> <option >100J</option> <option >100K</option> </select></td> <td align="center"><select onchange="changeBra(this.selectedIndex);" size="1" name="BEF"> <option >80A</option> <option >80B</option> <option >80C</option> <option >80D</option> <option >80E</option> <option >80F</option> <option >80G</option> <option >80H</option> <option >80I</option> <option >80J</option> <option >80K</option> <option >85A</option> <option >85B</option> <option >85C</option> <option >85D</option> <option >85E</option> <option >85F</option> <option >85G</option> <option >85H</option> <option >85I</option> <option >85J</option> <option >85K</option> <option >90A</option> <option >90B</option> <option >90C</option> <option >90D</option> <option >90E</option> <option >90F</option> <option >90G</option> <option >90H</option> <option >90I</option> <option >90J</option> <option >90K</option> <option >95A</option> <option >95B</option> <option >95C</option> <option >95D</option> <option >95E</option> <option >95F</option> <option >95G</option> <option >95H</option> <option >95I</option> <option >95J</option> <option >95K</option> <option >100A</option> <option >100B</option> <option >100C</option> <option >100D</option> <option >100E</option> <option >100F</option> <option >100G</option> <option >100H</option> <option >100I</option> <option >100J</option> <option >100K</option> <option >105A</option> <option >105B</option> <option >105C</option> <option >105D</option> <option >105E</option> <option >105F</option> <option >105G</option> <option >105H</option> <option >105I</option> <option >105J</option> <option >105K</option> <option >110A</option> <option >110B</option> <option >110C</option> <option >110D</option> <option >110E</option> <option >110F</option> <option >110G</option> <option >110H</option> <option >110I</option> <option >110J</option> <option >110K</option> <option >115A</option> <option >115B</option> <option >115C</option> <option >115D</option> <option >115E</option> <option >115F</option> <option >115G</option> <option >115H</option> <option >115I</option> <option >115J</option> <option >115K</option> </select></td> <td align="center"><select onchange="changeBra(this.selectedIndex);" size="1" name="ICS"> <option >0A</option> <option >0B</option> <option >0C</option> <option >0D</option> <option >0E</option> <option >0F</option> <option >0G</option> <option >0H</option> <option >0I</option> <option >0J</option> <option >0K</option> <option >1A</option> <option >1B</option> <option >1C</option> <option >1D</option> <option >1E</option> <option >1F</option> <option >1G</option> <option >1H</option> <option >1I</option> <option >1J</option> <option >1K</option> <option >2A</option> <option >2B</option> <option >2C</option> <option >2D</option> <option >2E</option> <option >2F</option> <option >2G</option> <option >2H</option> <option >2I</option> <option >2J</option> <option >2K</option> <option >3A</option> <option >3B</option> <option >3C</option> <option >3D</option> <option >3E</option> <option >3F</option> <option >3G</option> <option >3H</option> <option >3I</option> <option >3J</option> <option >3K</option> <option >4A</option> <option >4B</option> <option >4C</option> <option >4D</option> <option >4E</option> <option >4F</option> <option >4G</option> <option >4H</option> <option >4I</option> <option >4J</option> <option >4K</option> <option >5A</option> <option >5B</option> <option >5C</option> <option >5D</option> <option >5E</option> <option >5F</option> <option >5G</option> <option >5H</option> <option >5I</option> <option >5J</option> <option >5K</option> <option >6A</option> <option >6B</option> <option >6C</option> <option >6D</option> <option >6E</option> <option >6F</option> <option >6G</option> <option >6H</option> <option >6I</option> <option >6J</option> <option >6K</option> <option >7A</option> <option >7B</option> <option >7C</option> <option >7D</option> <option >7E</option> <option >7F</option> <option >7G</option> <option >7H</option> <option >7I</option> <option >7J</option> <option >7K</option> </select></td> </tr> </tbody></table> </form><br> <form name="shoes"> <center><table cellspacing="0" cellpadding="3" border="1" bordercolordark="#ff0000" bgcolor="#ffff00"> <tbody> <tr> <td><font color="#000000;">Get the US Shoesize:</td> </tr><tr> <td align="center"><font size="2">U.S.<br>Canada</font></td> <td align="center"><font size="2">Europe</font></td> <td align="center"><font size="2">Mexico</font></td> <td align="center"><font size="2">Japan</font></td> <td align="center"><font size="2">U.K.</font></td> <td align="center"><font size="2">Australia</font></td> <td align="center"><font size="2">Korea</font></td> <td align="center"><font size="2">inches</font></td> <td align="center"><font size="2">centimeters<br>cm</font></td> <td align="center"><font size="2">millimeters<br>mm</font></td> </tr> <tr> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="US_Canada"> <option>5</option> <option>5.5</option> <option>6</option> <option>6.5</option> <option>7</option> <option>7.5</option> <option>8</option> <option>8.5</option> <option>9</option> <option>9.5</option> <option>10</option> <option>10.5</option> <option>12</option> <option>13</option> <option>14</option> <option>15.5</option> </select></td> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="Europe"> <option>35</option> <option>35.5</option> <option>36</option> <option>37</option> <option>37.5</option> <option>38</option> <option>38.5</option> <option>39</option> <option>40</option> <option>41</option> <option>42</option> <option>43</option> <option>44</option> <option>45</option> <option>46.5</option> <option>48.5</option> </select></td> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="Mexico"> <option>--</option> <option>--</option> <option>--</option> <option>--</option> <option>--</option> <option>4.5</option> <option>5</option> <option>5.5</option> <option>6</option> <option>6.5</option> <option>7</option> <option>7.5</option> <option>9</option> <option>10</option> <option>11</option> <option>12.5</option> </select></td> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="Japan"> <option>21</option> <option>21.5</option> <option>22</option> <option>22.5</option> <option>23</option> <option>23.5</option> <option>24</option> <option>24.5</option> <option>25</option> <option>25.5</option> <option>26</option> <option>27</option> <option>28</option> <option>29</option> <option>30</option> <option>31</option> </select></td> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="UK"> <option>2.5</option> <option>3</option> <option>3.5</option> <option>4</option> <option>4.5</option> <option>5</option> <option>5.5</option> <option>6</option> <option>6.5</option> <option>7</option> <option>7.5</option> <option>8</option> <option>9.5</option> <option>10.5</option> <option>11.5</option> <option>13</option> </select></td> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="Australia"> <option>3.5</option> <option>4</option> <option>4.5</option> <option>5</option> <option>5.5</option> <option>6</option> <option>6.5</option> <option>7</option> <option>7.5</option> <option>8</option> <option>8.5</option> <option>9</option> <option>10.5</option> <option>11.5</option> <option>12.5</option> <option>14</option> </select></td> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="Korea"> <option>228</option> <option>231</option> <option>235</option> <option>238</option> <option>241</option> <option>245</option> <option>248</option> <option>251</option> <option>254</option> <option>257</option> <option>260</option> <option>267</option> <option>273</option> <option>279</option> <option>286</option> <option>292</option> </select></td> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="inches"> <option>9</option> <option>9.125</option> <option>9.25</option> <option>9.375</option> <option>9.5</option> <option>9.625</option> <option>9.75</option> <option>9.875</option> <option>10</option> <option>10.125</option> <option>10.25</option> <option>10.5</option> <option>10.75</option> <option>11</option> <option>11.25</option> <option>11.5</option> </select></td> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="centimeters"> <option>22.8</option> <option>23.1</option> <option>23.5</option> <option>23.8</option> <option>24.1</option> <option>24.5</option> <option>24.8</option> <option>25.1</option> <option>25.4</option> <option>25.7</option> <option>26</option> <option>26.7</option> <option>27.3</option> <option>27.9</option> <option>28.6</option> <option>29.2</option> </select></td> <td align="center"><select onchange="changeShoes(this.selectedIndex);" size="1" name="millimeters"> <option>228</option> <option>231</option> <option>235</option> <option>238</option> <option>241</option> <option>245</option> <option>248</option> <option>251</option> <option>254</option> <option>257</option> <option>260</option> <option>267</option> <option>273</option> <option>279</option> <option>286</option> <option>292</option> </select></td> </tr> </tbody></table> </center> </form><br>
  20. I have a problem running php on some of my html files-- I need a javascript equivalent of this little snipet, it checks if there is a cookie, if there is i can run a div, if there is no cookie then it will run the other div-- Everything i tried didn't work... here is the PHP version: this file is run on a .html file. <?php if(!isset($_COOKIE['letsChat'])){?> <div style="width:89px; height:19px" ><a href="javascript:void(0);" onClick="dhtmlwindow.open('{EMAIL2}', 'iframe', 'http://xxxxxx.com', '{EMAIL2}', 'width=224px,height=237px,resize=0,scrolling=0,center=1');"><font color="#ff0033"><b>CHAT ONLINE</b></font></a></div> <?php } else { ?> <div style="width:89px; height:19px; background-color:transparent;"><font color="#ffffff"><b>CHAT OFFLINE</b></font><div> <?php } ?> // to note: the cookie was set using this code: <script language="javascript"> document.cookie = "ShowFile= 1;" </script> // the value of the cookie is not to important but useful to know how to get/check it.. // is on a html file which is a pat-template file.. so no doctype headers -- regards tony
  21. sorry one more thing just occurred to me!! can i make the cookie a variable based on the username? is it possible? ie: the cookie that is loaded is the name of the user of the profile? that should make it more unique and secure:).. i will test and post..
  22. ahh thanks a stack. I will give this a try bit later.. it seems plausible I like the fix you gave me, it basically does not matter if the person has loaded the page and then has direct access to the actual file, as by the time the user reaches the iframe there has been a multitude of logins and passwords, and other database security functions, which will make the actual file (in its username folder) the users own file.. i just didnt want any outsider to be able to access it.. I was wandering: i have heard before, that an iframe is not encouraged. What would be a better way to load a url into a page? a div? or a javascript frame? or is there another method?.. best regards Tony
  23. please it is very important!! I have a script (main file is index.php) that is called into an iframe src via an url reference... http://www.xxxx.com/folder/userfolder/folderwithemailname/index.php works perfectly!!.. How can i prevent someone getting direct url access to the file? if someone were to take the url: http://www.xxxx.com/folder/userfolder/folderwithemailname/index.php and place it into the address bar, they have access to the file... points to note: -i have no database for this script, -the iframe is called directly into a html file, - i dont know the userfolder or the emailfolder names, - and the index.php is linked to several other .php and .js and .html files in different folders.... // i can add something like this to these file:(i found this on the net). Add this to the page that you want to only be included <?php if(!defined('MyConst'){die('Direct access not premitted');} ?> then on the pages that include it add <?php define('MyConst', TRUE); ?> this will prevent the files being accessed, but then i cant access the file via the iframe url.. please any ideas??? best regards Tony
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.