HTML - How To Access Url Parameters In Html?
I am writing an "external link exit page" where anytime a user clicks on an external link in my site, it navigates to a page exit.html that says something to the effect of: "Please note that you are leaving our website, and therefore we are not responsible for the content of the website you are about to visit." I was thinking of making the destination URL be a parameter, so for example a section of links on my website might look something like this:
<h3>Other Sites You Might Find Useful</h3> <a href="exit.html?url=http://www.google.com">Google</a><br /> <a href="exit.html?url=http://www.yahoo.com">Yahoo!</a><br /> <a href="exit.html?url=http://www.weather.com">weather.com</a><br /> So in exit.html I have a parameter called url that needs to be decoded and placed in my HTML source. After I display the warning message I want to give the user the option to either go back or continue to the externall url. <h3>You are now leaving our website. Please be advised that we are not responsible for the content of the website you are about to visit. </h3> <h4>Are you sure you want to continue?</h4> <a href="[URL parameter]">Yes! Continue to [URL parameter]</a><br /> <a href="javascript:history.go(-1)">No! Cancel and go back</a><br /> How do I do this? Similar TutorialsHi All, I have few requirement for the HTML and MS Access Database Integration. 1. requirement to "register online" using HTML page however I want all the information (Name, Age, Username, Password,etc..) entered to be updated in the MS Access Database. 2. requirement to login using the HTML which can read the username/password from the MS Access Database. Can anyone give me the link to an exising source code for this requiremnet or guide me how shall I proceed? I have the HTML page ready for the registration/login and MS Access Database ready however I need to know how can I read/write from the HTML page to the MS Access Database? I am new to HTML and MS Access. Thank you all in advance for any help with my requirement. Sanjiv Does anyone know if/how it's possible to access a mobile phone's contacts/phonebook from HTML or HTML5 code in order for the user to retrieve and insert contacts into a web form? Thanks, James I have a html table that contains data and i want to insert the data into an Access database. Any ideas how to do this? Table1: 01, Rich, Mike, 23, fred lane, 02, James, milner, 45, School Lane, 03, Rob, Matthews, 89, College Road, I connect to the database using this code: $db_conn = new COM("ADODB.Connection"); $connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=". realpath("./Database1.mdb").";"; $db_conn->open($connstr); I made a preliminary layout for a website: index4-table-bad.html The problem is that it only works as intended in Opera browser. In IE and in FireFox a problem occurs: the <td id="td-menu2"> expands and shows the red background (I gave the red background intentionally to better see the problem). The "Article", "Menu1", and "News" will be dynamically generated (in php) and can have different heights. There is no option to predict which one will be the tallest. Please tell how should I correct the page so that: - <td id="td-menu"> should not expand and stay 35px heigh and the article should go just below it with 5px spacing (as it now works only in Opera) - as it is now, all areas should end at the bottom at the same level (I mean: "MENU1", "ARTICLE", "NEWS" should end at the same level/line at bottom). What would be the best way to improve this layout to correct abovementioned bug? I haven't been coding html for over 10 years so I am not sure how I should approach to this bug nowadays. Is it better to add Javascript or trasform this layout into divs instead of the table. But even with divs it will perhaps need Javascript to keep areas ends at bottom at same level. Or is there any better way than Javascript? I am working with current browser versions: Opera 9.64, IE 8, FireFox 3.0.10. Regards, Mark Hi! I was wondering whether someone could enlighten me (or do it for me), as to how I use URL Parameters. I don't understand javascript, or much html for that matter. I have a page, 'http://goldenlightsoft.org'. I want to set it up so if someone types in 'http://goldenlightsoft.org/index.htm?page=downloads.htm', they would see the normal page, except that the iFrame in the middle ('I1'), would be pointing to downloads.htm of the site, not the normal home.html. I would prefer this system to work without compatibility issues with other browsers, and also I am not sure of the hosts capabilities. I know html and javascript work fine. Can someone help me with this? Thanks, dawmail333 I have been working on this thing forever!! I am in desperate need of help!! I currently am running an HTA file called h1.hta and I want to be able to open another HTA called h2.hta that will take in parameters and close the current HTA. I am using this snippet of code to open the new h2.hta(parameters) within my current h1.hta : nextpage = h2.hta?trial=2&condition=1 //vbscript set WshShell = CreateObject("WScript.Shell") WshShell.Run(nextpage) When I run this, I get a "File not Found" error. I believe it's because the file in the system is entitled h2.hta and when i send it with the parameters, it does not recognize. My question is how do I go to another hta file with parameters??? I'm having an issue with the size of my main.swf. When I use the swfobject.embedSWF code, leaving it as 100% 100% covers the entire browser window obscuring my background image. In order to view the image I have entered '1000' and '725' which are the dimensions of my main.swf. However, this left aligns the swf and the height appears to not work, I am left with a black box that extends from the bottom of my main.swf to the bottom of the browser window. What do I need to adjust in order to keep my main.swf top aligned, centered horizontally and my background image visible. Also, if anyone happens to know how I could have the background image scale to fit horizontally/vertically without repeating, that would be great. Thanks. HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Website Title</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="swfobject/swfobject.js"></script> <script type="text/javascript" src="swfaddress/swfaddress.js"></script> <script type="text/javascript"> swfobject.embedSWF('main.swf', 'website', '1000', '100%', '9.0.45', 'swfobject/expressinstall.swf', {}, {bgcolor: '#CCCCCC', menu: 'false'}, {id: 'website'}); </script> <style type="text/css"> /* hide from ie on mac \*/ html, body, #website { height: 100%; overflow: hidden; } /* end hide */ body { background-image: url(images/background.png); background-repeat: no-repeat; background-position: 50% 0%; margin: 0; padding: 0; font: 86% Arial, sans-serif; } </style> </head> <body> <div id="website"> <p>In order to view this page you need Flash Player 9+ support!</p> <p> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a> </p> </div> </body> </html> I'm working on a site with an image gallery which directly links to images. I'd like to modify this so that, when those images are small, they are no longer displayed off-center and on a white background. At some point in the past I think I remember seeing a site that somehow passed display parameters to the browser along with the image link. Is this possible, or am I imagining things? Thanks for any info. (If this turns out to be impossible, I'll be rebuilding the gallery a bit, and any hints on an easy way to do this would also be apreciated.) Hi, How can I explicitly add parameters to a form, besides the input that the user has inserted ? I have tried something as: action="www.nnn123.com?myPrameter=1" but it doesn't work... thanks Is it possible (&if so how) to pass a search parameter when linking through an iframe. Page A always wants to load a suppliers catalogue in an iframe with the search field filled - same fill every time (so if it is possible there are no complications). Unfilled the address is suppliersite.com/search.asp The form on the suppliersite search page search page only has one field & search button Thanks sub Guys, I have the following code which was generated by a Firefox add-on: Code: <SearchForm>http://legendas.tv/index.php?opcao=buscarlegenda</SearchForm> <os:Url type="text/html" method="POST" template="http://legendas.tv/index.php?opcao=buscarlegenda"> <os:Param name="txtLegenda" value="{searchTerms}"/> <os:Param name="selTipo" value="1"/> <os:Param name="int_idioma" value="99"/> </os:Url> Is it possible to get all these parameters together in a single URL line? Something like: Code: http://legendas.tv/index.php?opcao=buscarlegenda&txtLegenda={searchTerms}&selTipo=1&int_idioma=99 I don't know. This was just a banal example to picture my intention. So, is it possible? If so, please, what would that URL look like? Thanks a lot, guys. brunces When we use accesskey attribute we can able to use ALT+(accesskey). is there any way to define access keys for button and links should be allow us to use CTRL+ALT+(accesskey) Thanks Hi I am Ron a new member. I am using 123 reg to edit our allotment web site. Access seems to have changed and cannot get in to edit can anyone advise. Ron Can i have a code to make a password kinda thingy? i want to have some pages that you need a special password for. and how can i make the image in the search bar of my page different, is it <title image url="URL HERE"> Hi. I'm new to web development, and since I didn't have any luck on google with this I thought I'd ask here. What I need is the ability to allow only one user to access my page at a time, with the access time tied to their account/password. This is not a general web page, and you already have to vpn to get to it so overall security isn't a big deal. The system allows remote control of a few simple machines, and currently if more than one person can get to it simultaneously the last access steals control. Anyway, heres an example: Joe's Time: 1:00 - 3:00 M, cannot login before 1:00 and auto-logout at 3:00 Tom's Time: 3:00 -5:00 M, Bob's Time, etc.. I suspect this might require Java or something, but I don't have the first clue where to start looking. Its a windows box btw, and I don't have control of the user machines so this has to be set up for my local directory. Any hints (or free code if this is a simple/stupid question) are appreciated. Hi All... I'm building a website in Dreamweaver 8. I have one layer in the site that contains a form field for collecting email addresses. The layer is placed on top of an image. When I horizontally resize my browser window the layer moves. When I resize the browser vertically it stays in place. I've tried switching the layer properties from relative to absolute and back again but it doesn't make a difference. Could someone please have a look at the page and see if they have any suggestions? The link is http://www.sweetdivinemusic.com/storycollective This is the last piece I need to fix before taking the site live. Thanks a ton folks! Robert Hi everyone, What is the code that i will have to enter to my website so mobile phones will be able to access it? Is it possable to conect to a db without serverside script? My website is in asp but I would like to rebuild it. Is there a way to connect using xhtml. The one thing I really like is every part of my website is dependent on my db. That makes it really easy to admin but makes it stuck on one layout unless I rewite the whole site. Even java script would do. I want a site that gets away from asp and/or php but I am reluctent to give up my db. Hello, I am trying to load an HTML page with following code snippet. The img1440.html in window.open method gives an "access denied" error when I load this calling HTML that loads the img1440.html from onclick event. HOWEVER, THE WEIRD thing is that this error only comes from IE. It works JUST GREAT on Firefox. Please help. My most of user base are is accustomed to IE so gotta live with IE. Please help. <body> <!--1 --> <div id="Div1" class="panel" style="margin-right:0.5%; margin-bottom:0.5%;" onclick="window.open('img1440.html', '','width=600px,height=200px');" > <div class="panel-label">Accounting Services</div> <ul class="block"> <!--STUFF--> </ul> </div> |