I have a webpage without php, I would like to have the url of the current page pasted into a box on the form on the page, so that when I receive the email, I can see the url. I have a javascript that could get the url, but all it does is writes it out on the page instead of putting it in a box. here it is. maybe someone could modify it? \n\n<SCRIPT LANGUAGE="JavaScript">\n   \n           <!--\n           {\n             document.write(location.h ref);\n           }\n           // -->\n</SCRIPT>\n\n(You'll have to take out the space between h and ref in the ".href"\nany other suggestions? Thanks
132309
Replace that silly outdated script with the following in the head element of your page:\n\n<script type="text/javascript">\n function storeLoc() {\n  document.getElementById ("theLoc").value = window.location.href;\n }\n</script>\n\nRemove the space after the getElementById command. Call this function after the page loads:\n\n<body onload="storeLoc()">\n...\n</body>\n\nSomewhere in the body of your page, create a text input for the location. You may want to hide it so that it is uneditable:\n\n<input type="hidden" id="theLoc" />
64766
Write your script in another file and just call the functions in your main web page. For instance when using javascript we write all the functions in a file with the extension .js and just include it in the page we need. That way your users will only see the function being called and not the details of the function.\n\nhope this helps.
341685
Well first of all you need a standard html form. So lets create one real quick...\n\n\n<form method="POST" action=" processlink.php ">\n<input type="TEXT" name="linktext" size="30">\n<input type="submit" name="submit" value="Submit">\n</form>\n\nNow that we got a form, you need the processlink.php script to take what they entered and return a link containing the words...\n\n<?php\n\n$linktext = $_POST['linktext'];\n\nif (($linktext != null) && (strlen(trim($linktext)) > 0)) {\n  $link = "http://www.goarticles.com/cgi-bin/rss-search.cgi?search_title=" . $linktext . "&l=20&s=1&c=none&D1=advanced"\n\necho urlencode($link);\n}\n\n?>\n\nSorry if Yahoo cuts the link part short. The idea is that you concatenate (join together) the parts of the url and your link text into one link, then encode it.\n\nNow of course this is really basic, so you might want to check with better validation etc, but the general idea is there. The script will then echo out the URL link and all should be right with the world. \n\nI have provided links to the PHP documentation that shows you some of the key functions used in the example for better descriptions.\n\nEnjoy!
389229
if its in an email where the client doesnt automatically do that:\n\n<a href="website address"> website address </a>\n\nreplace website address with whatever address you want to send.
238996
This is kinda difficult.  You need a script to process the results and email them to you on your server that's hosting your web page.  The script can be in perl/php/cgi/python/etc., but something needs to do the processing.\n\nThere are free scripts available for forms processing.  Check google for form processing script and you might find some.
307296
Put this in an asp page and try it.I jus did it and it worked. \n\n<%@ Language=VBScript %>\n<HTML>\n<HEAD>\n<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">\n</HEAD>\n<BODY>\n<form name="frmTest" method="post">\n<img src="Bluebar.gif" ></img>\n<br>\n<LABEL id="lblclick" onclick="ShowList()">Click on this</LABEL>\n<P> </P>\n<br>\n<LABEL id="lblShow" ></LABEL>\n</form>\n</BODY>\n</HTML>\n<script language="javascript">\nfunction ShowList()\n  {\n   window.document.getElementById('lblShow').innerHTML = "Hey ! you just viewed and clicked me :)"\n  }\n</script>\n\nDude.....the window.document.getElementById will show as .... I tried all methods and yahoo still sucks...\nSo here I will explain.  getElementBytId() .In this bracket you need to give the Label which is displaying the text, its id , i.e in this case getElementBytId('lblShow'), and after the close parenthesis we give ".innerHTML" and then "=" what value we want to give.\nhave issues still then, send me a mail at nigeljd@gmail.com
605166
When you code your webpage in HTML you need to do some coding in JavaScript. \n\nThe following code should help.\n<html>\n<head>\n<script>\nfunction openWindow()\n{\nprompt("Welcome to my site")\n\n}\n</script>\n</head>\n<body onload "openWindow()">\nContent of webpage\n</body>\n</html>\n\nThis will successfully give you a prompt message box.\n\nHope that helps
211780
make php file and put this codes in it\n\n<?\n$name= $_REQUEST['name'];\n$last= $_REQUEST['last'];\n$email= $_REQUEST['email'];\n$msg= $_REQUEST['msg'];\n$msg2="\n<div align=&#92;"center&#92;">\n<table border=&#92;"1&#92;" width=&#92;"42%&#92;" bordercolor=&#92;"#C0C0C0&#92;" height=&#92;"208&#92;">\n<tr>\n<td>".$name."</td>\n</tr>\n<tr>\n<td>".$last."</td>\n</tr>\n<tr>\n<td>".$email."</td>\n</tr>\n<tr>\n<td height=&#92;"105&#92;">".$msg."</td>\n</tr>\n</table>\n</div>";\n\n\n$to  = "your@email.com" . ", " ; // note the comma\n$to .= "your@email.com";\n\n$subject = "Online Form";\n$headers  = "MIME-Version: 1.0&#92;r&#92;n";\n$headers .= "Content-type: text/html; charset=iso-8859-1&#92;r&#92;n";\n$headers .= "From: Sales Department <visitor@yoursite.com>&#92;r&#92;n";\n$headers .= "Cc: your@email.com&#92;r&#92;n";\n\nmail($to, $subject, $msg2, $headers);\ninclude("done.html");\n\n?>\n\n\nand make this html form\n\n<form method="POST" name="mail" action="mail.php">\n<table width="400" cellspacing="2" cellpadding="2" border="0">\n  <tr>\n    <td width=90>name:</td>\n    <td>\n<input name="name" type="text" style="border-width:1; font-family: tahoma; font-size: 1em; width: 160" onkeypress="return submitenter(this,event)" onkeydown="return changelang(this);" size="1"></td>\n  </tr>\n<tr>\n    <td width=90>lastname:</td>\n    <td>\n<input name="last" type="text" style="border-width:1; font-family: tahoma; font-size: 1em; width: 160; height:17" onkeypress="return submitenter(this,event)" onkeydown="return changelang(this);" size="1"></td>\n  </tr>\n<tr>\n    <td>email:</td>\n    <td><input name="email" dir="ltr" type="text" style="border-width:1; font-family: tahoma; font-size: 1em; width: 160"></td>\n  </tr>\n<tr>\n    <td valign=top>decription:</td>\n    <td>\n<textarea name="msg" cols="28" rows="3" id="comments" style="border-width:1; font-family: Tahoma; font-size: 1em; padding-left:4; padding-right:4; padding-top:1; padding-bottom:1; width:220px;" onkeypress="return submitenter(this,event)" onkeydown="return changelang(this);"></textarea></td>\n  </tr>\n<tr>\n    <td></td>\n    <td><input type="submit" value="submit" name="submit" style="font-family: Tahoma; font-size: 1em"></td>\n  </tr>\n</table>\n</form>\n\nalso make done.html and put your tanx message in it
108258
i would surgest a use of a small java script img at the begining of the script\n\nsome thing like\n<a href="noname.html" onClick="liens=new createArray('noname.html','noname.html'); location=liens[pub]; return false"><img name="pubImg" src="ATT58239.jpg" width="550" height="379" border="0">
327438
idepends what language you're using - depending on how secure you want it, you could put the file in question on a page with an arbitrary name (say "mywebsite.com/gkhkfgksn.html" that is only accessed via an html form which asks users to eneter their email and then use java or php or whatever to validate the form data. (simple validating stuff you should be able to find anywhere - mayve dynamicdrive.com or phpfreaks.com or something). \n\ni like php for my stuff- - i think i'd make users register for the site w/ email address and ask them if they'd like to be added to my mailing list onthe same form, and let it all flow into a mysql DB.
348543
That is javascript... html does not have variables!\n\nyou could do it without a <script> tag... is that what you meant?
174790
If you have PHP enabled, you could add a hidden field:\n\n<?\n$url = $_ SERVER[SCRIPT_NAME]."?".\n$_ SERVER[QUERY_STRING];\n?>\n\n<input type="hidden" name="url" id="url" value="<? echo $url; ?>" />\n\nYou'll need to remove the spaces between the underscores and SERVER in the example above.
162078
There are a few ways in doing forms on a website.  One of the most common is to use a PERL script or other form of CGI.  You will need to check with your hosting company to see what you are allowed to do.\n\nYou can also use Frontpage and ASP.  I have not done personally, but have seen it.
291905
well here is how you make some one go to a site when they mouseover an image\n\nthe server has messed up my code below. put your cursor over the code and you will see it come up in a yellow box.\n\nin the current window\n<img scr="image.gif" onmouseover="window.location='http://www.yahoo.com/'">\n\nopen a new window\n<img scr="image.gif" onmouseover="window.open('http://www.yahoo.com/');">\n\nyou could make this target a frame to
662791
Addresses have two formats on Yahoo! Answers.\n\n1)  www.yahoo.com (no link)\n\n2)  http://www.yahoo.com (a link)\n\nSimply, if you have included the "http://" prefix, the website will be linked to. If you do not, it will appear as plain text. That way, you can decide whether you want to link or not.\n\nHope this helps!\n\nP.S. Technically, you are supposed to use "http://" even when typing an address into the address bar. But nowadays, our browsers do it for us, so people fell out of the habit.
206512
If you have the code that you need.. all you do is highlight the entire code and then hold down the Ctrl and the C button on the keyboard.. this will copy the code.. then you place the cursor on the place where you want to add the code and use the Ctrl and V keys on the keyboard which will paste it on your page.. Also there are some great sites on the Internet that will show you how to use HTML code... just type in free HTML courses or classes and it will show a long list of sites to use to learn how to use it.. Hope this helps :)
332596
FYI, you don't have to take out the tags. Yahoo treats everything you enter as text, even if it's tagged as a script. Also, FYI, the "language" attribute of the script element has been deprecated. You only need type="text/javascript" now.\n\nIt may be impossible to use the document.write method multiple times on one page, because you're asking the browser to write to the document that's being viewed, and the method doesn't take arguments for starting position. You'll have better luck if you open a blank page for writing the new links. Also, you might want to consider creating links using DOM objects instead of massive strings. You could create an array of DOM objects and then loop through or call them as needed. Use this link for explanations of how to do this:\nhttp://www.w3schools.com/htmldom/dom_obj_anchor.asp\n\nEmail me if that doesn't make sense.