HTML - Passing Variables In A Text Link
I am trying to pass variables to a php script from a text link. This is how I was doing it:
<a href="page.php?variable=something"> However, my question is: is there a way to do this so that the variables are NOT included in the URL? So the destination URL would be 'page.php', and not 'page.php?variable=something', but the variable would still be passed? THANKS! Similar TutorialsIn a regular form with text fields, can I pass the imput from the user directly into a hidden textarea from multiple fields intertwined with html? Example: <form> <input type="text" name="firstname"> <input type="text" name="lastname"> <input type="text" name="occupation"> <input type="hidden" value="some html + firstname + some html + lastname + some html + occupation"> </form> I think this might require some javascript. Is something like this possible? Hey guys, I'm fairly new to programming web forms on my own. (I've used some Joomla/Mambo components that eased the process). I understand the basics of forms and what not, but was curious as to what the best way to pass variables from an email (pre-filled) to a form would be without using Server-Side Scripting of any kind. (I could easily write a PHP page to do so, but on this specific project I don't have access to any kind of scripting on the server side). I have thought about doing it one of two ways. The first way would be to write some Javascript that saves the fields I need as cookies and then calling those cookies back on the webform. The other way, was to pass the variables through the URL. I don't know if this is possible without Server-Side Scripting or not. I'm sure I could hack up some sort of Javascript code to read the URL and break it into the relevant variables but that seems like a lot of work for something so simple. Is there a way to use the GET method at all to pull those variables from the URL? Also, sorry for not posting this in the Client-Side Scripting forum, but I wasn't sure if there were other solutions to this problem that wouldn't require any scripting at all. Thanks Again, -Ian- No. I think I got misunderstood. in my Page1.html I have this: <a href="Page2.html?ProductID='1234'>Page 2</a> So, this would open my Page2 with variable ProductID=1234. When it opens, how could my VBScript in there pick up the received variables? 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 Im not sure if this is posted in the right place but anywho im just wondering if this is possible (note:im a total noob) i have a table HTML Code: <table border="0"> <tr> <!--the embed code of a youtube video--> </tr> <tr> <p> video #1<br /> video#2 <br /> video#3 <br/ > and so on </p> </tr> and im wondering if its possible to click on one of the video #1,2 or 3 and set a javascript variable to a certain amount and change the embed code of the youtube video corresponding to the video # you selected. Is this possible or am i dreaming?? Thank You, why789 How do I Link text in a div, h1, h2, p to an external text file or xml file - I don't really know how to ask the question. I think I need an xml file that can be easily edited by a user saved to the server to update an xhtml page text without the user getting bogged down in html. I don't want to use joomla or cms. <Any ideas />? Best wishes, mas Hey guys, in IE my text is fine but if you open http://canapictures.com/cast.html in firefox all the text is blue and is linked... How do I change this? Hello, I am new here and relatively new to using HTML. I am a hardwood distributor and I am trying to get a text box and submit button that would allow a consumer to type in their zip code and have it link to a page that displays a list of our contractors. For example, a consumer navigates to our page looking to get their floor installed. They put their zip code in the text box, hit submit, and it brings them to a page that has names and contact info to installers in their area. I know I'll have to get a long list of zip codes, and I will need to have it link to another page that says "we have no installers in your area" if they input a zip code that is not in our distribution area. If anyone has an HTML script that I could use it would be greatly appreciated. Thank you so much! Brian Hello, I've got the following problem: <a href="webpage.html"><h2>textlink<h2></a> This works! But I need more text links on one line and so I typed: <h2><a href="webpage.html">link to page</a> <a href="webpage2.html">link to page2</a></h2> Result: links are working, they are on one line, BUT the <h2> is not working anymore and the text is default. What Do I have to do now? Cheers! Roy How do I change the text size of a link HTML Code: <a href = "E:\Senior Project\pizza.html target="_blank" style= "color:blue">PIZZA</a> Hi On my site, I have a menu on the left hand side. When the mouse is over each option, the inner part of the table turns blue. Once you click on the text inside the mini table-button, it takes you to where you want to go. I would like it so that when you click on any part of the table-button it takes you to where you want to go, instead of having to pin-point the cursor to the text. If you try on my site, I'm sure you will see what I mean. It isn't a major problem, it is just somthing I feel would enhance the user-bility. www.vivalefrench.com Hope you can help, thanks It's a simple problem. I have a set of anchors that are the navigation for my site. They are very simply rendered as CSS-styled text with links. There's no Javascript (Not controlling the basic layout in any case). The issue is that the "link" (The clickable area) is displaced vertically from the associated text. I'm guessing that this is a rendering bug in Firefox, but I'd like to be sure that I've not just done something stupid first. In any case, the site in question is http://portfolio.hoovesofdestiny.co.uk. The links are those at the top of the page. The pages all validate according to the W3C, as does the CSS. Jon Hello again I need to open a page of text from a text link as its too much on one page What is the code please to do it and I gues I have to find the page address too and upload the page with ftp? Thanks Hi all, I would like to ask for your help here. How can I first have a few radio buttons on my page and when the user select one of those, a text box with a submit button will appear. The text box is for the user to key in some kind of code/password so that it will prompt the user to a url according to the code/password. Example: Code: YAH URL: www.yahoo.com Code: GOO URL: www.google.com And if the user keys the wrong code it will prompt a message box asking them to try again. If the user key the code wrongly for 3 times it will prompt to another url. Ive also attach an example of how it should look like. I would appreciate for your help. Thanks a lot! Hi, My problem is i can a marquee scrolling up inside an image, but on different browsers load the text in different places. Is there a way i can code it so the text position is relevant to the image or will i have to maybe make it one image somehow? Thanks Tom Hello. I'm having this rather frustrating problem. I'm using GoLive to build a really simple site. For some reason, I've been having problems with random text links not working. In checking the code, everything looks okay to me. It works in IE, but I won't even get any indication (when it's moused over or clicked on) that a link exists when it's open in Firefox. The problem is evident in preview, and live. here's the code for the body of the part of the page it's in (I bolded it for the purposes of finding the broken link): < body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0" > < div id="menu" class="menu" > < img src="image-files/darkbox.jpg" alt="" height="360" width="134" border="0" / >< /div > < div id="content" class="content" > < table width="600" border="0" cellspacing="0" cellpadding="0" bgcolor="#cab388" > < tr > < td width="295" >< img src="image-files/tlcorner.gif" alt="" height="28" width="28" / >< /td > < td >< span style="float:right" >< img src="image-files/trcorner.gif" alt="" height="28" width="28" align="right" / ></span >< /td > < /tr > < tr height="41" > < td colspan="3" height="41" > < h2 align="left" >< font size="+1">Contact Us< /font >< br / > < img src="image-files/divider.jpg" alt="" height="15" width="341" align="top" border="0" / >< /h2 > < p align="left" >If you would like to get in touch with us, please use one of the following options:< /p > < dl > < dd > < p >< strong >Email us: < /strong >contact@anomalydog.com< br / > < strong >Reach us via snail-mail: < /strong >Anomaly Dog, 1644 Lake Road, Youngstown, NY 14174< /p > < /dd > < /dl > < p >< img src="image-files/divider.jpg" alt="" height="15" width="341" align="right" border="0" / >< /p > < br / > < br / > < p > If you would like information about applying as an artist, please look < a href="http://www.anomalydog.com/join/artistinfo.html" >here.< /a >< /p > < /body > The hyperlink to the page is http://www.anomalydog.com/join/artistinfo.html I know there's got to be a pretty easy way to do this but I am having difficulties. I'm making a FAQ for my website, and all I want to do is have a list of questions, and you can click the question and the answer will appear directly underneath it. Then if you click the question again, the answer will become hidden. Sounds easy enough right? How do I do it? I would like to add a text link to a page that would go to our search page. The pull down menu on the page would then be pre-populated with the search they are looking for. For instance it would say, "Click HERE to find retailers that has this color" (The word "HERE" is the link.) The link would go to the SEARCH page and the drop down menu on the page would have the (already existing) drop down menu showing "SILK COLORS." No need for the user to look for it on the drop down menu. Thanks for your help. Let me know if you need clarification. Simone |