473,324 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Radio Button response - continued.

Hey.
I thought id make a seperate discusion because the other became a bit lengthy and confusing.

Aim:
Create a php file which works with the script below, which makes the radiobuttons work =D
Right, when say mp3 radio button is selected, and say BLA is typed in the text box. I would like it to open up
Expand|Select|Wrap|Line Numbers
  1. http://www.google.com/search?hl=en&q=blaa%20intitle%3A%22index.of%22+%22parent+directory%22+%22size%22+%22last+modified%22+%22description%22+%5Bsnd%5D+%28mp4%7Cmp3%7Cavi%7Cflac%7Caac%7Cape%7Cogg%29+-inurl%3A%28jsp%7Cphp%7Chtml%7Caspx%7Chtm%7Ccf%7Cshtml%7Clyrics-realm%7Cmp3-collection%29+-site:.info
and when smething else is selected, google, just which a different search command.... i hope that makes sense.


This is the script i have found, which is incomplete.
I would like help completing the form post action bit, help making the php script which the command is posted to to make google open with each different commands.

Here is the (maybe)incomplete script:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  
  3. <Script LANGUAGE="JavaScript">
  4. <!--
  5. var Message = "- wwwwwwwazuuuuuuuuuuup -";
  6.  
  7. var Leftspace = "      ";
  8. var Rightspace = "                            ";
  9.  
  10. var message1 = Leftspace + Message + Rightspace;
  11. var dir = "left";
  12. var speed = "100";
  13.  
  14. function bounce(){
  15.  
  16.     if (dir == "left"){
  17.  
  18.         var message2 = message1.substring(2,message1.length) + "  ";
  19.         window.status = message2;
  20.         setTimeout("bounce()", speed);
  21.         message1 = message2;
  22.         if (message1.substring(0,1) == "-") dir="right";
  23.     }
  24.  
  25.     else{
  26.  
  27.         message2 = "  " + message1.substring(0,message1.length-2);
  28.         window.status = message2;
  29.         setTimeout("bounce()", speed);
  30.         message1 = message2;
  31.         if (message1.substring(message1.length-1,message1.length) == "-") dir="left";
  32.     }
  33.  
  34. }
  35.  
  36. bounce();
  37. // -->
  38. </Script>
  39. <head>
  40.   <META NAME="Googlebot" CONTENT="nofollow">
  41.  
  42.  
  43. <title>Get the best out of google!</title>
  44.   <meta name="description" content="BliZmA's GooGeR">
  45. <style type="text/css">
  46. body{padding:0;margin:0;font-family:arial;font-size:11px}textarea,INPUT{font-size:12;border-color:#888888;background:#FFF;border-style:solid;border-width:1px}td{font-size:12px}#foo{background:#eeedf1;border-bottom:thin solid #6f559d;padding:4;font-weight:bold;margin-bottom:20}a{color:#113388;line-height:14pt;text-decoration:none;font-weight:none;font-family:Arial;font-size:12px;}a:hover{background:#eeeeff}a.bl:link{padding-left:14px;background:url(blog/list.gif) no-repeat 0px 5px}a.bl:visited{background:url(blog/list_checked.gif) no-repeat 0px 3px;padding-left:14px}a.bl:hover{background:url(blog/list_hover.gif) no-repeat 0px 3px}#engine,input.radio{border:none}
  47. </style>
  48. </head>
  49.  
  50. <body onload="window.defaultstatus='';">
  51. <script language=JavaScript>m='%3Cscript%20language%3DJavaScript%3E%3C%21--%0D%0A%0D%0Avar%20message%3D%22Function%20Disabled%21%22%3B%0D%0A%0D%0Afunction%20clickIE%28%29%20%20%7Bif%20%28document.all%29%20%7Balert%28message%29%3Breturn%20false%3B%7D%7D%0D%0Afunction%20clickNS%28e%29%20%7Bif%20%0D%0A%28document.layers%7C%7C%28document.getElementById%26%26%21document.all%29%29%20%7B%0D%0Aif%20%28e.which%3D%3D2%7C%7Ce.which%3D%3D3%29%20%7Balert%28message%29%3Breturn%20false%3B%7D%7D%7D%0D%0Aif%20%28document.layers%29%20%0D%0A%7Bdocument.captureEvents%28Event.MOUSEDOWN%29%3Bdocument.onmousedown%3DclickNS%3B%7D%0D%0Aelse%7Bdocument.onmouseup%3DclickNS%3Bdocument.oncontextmenu%3DclickIE%3B%7D%0D%0A%0D%0Adocument.oncontextmenu%3Dnew%20Function%28%22return%20false%22%29%0D%0A%0D%0A//%20--%3E%3C/script%3E';d=unescape(m);document.write(d);</script>
  52.   <center>
  53.     <script type="text/javascript">
  54.  
  55. search='<input type="radio" name="engine" id="engine" value="mp3s" CHECKED> <b>MP3 Music<\/b> <input type="radio" name="engine" id="engine" value="large"> Albums / Large Files <input type="radio" name="engine" id="engine" value="torrents"> Torrents <input type="radio" name="engine" id="engine" value="univ"> Free University Courses <input type="radio" name="engine" id="engine" value="pdf"> PDF Documents <input type="radio" name="engine" id="engine" value="ringtones"> Ringtones <input type="radio" name="engine" id="engine" value="youtube"> Youtube / Viewcount<\/div>';
  56.  
  57. news='<input type="radio" name="engine" id="engine" value="googlenews" CHECKED> Google News\r\n<input type="radio" name="engine" id="engine" value="bbc"> BBC <input type="radio" name="engine" id="engine" value="ap"> AP <input type="radio" name="engine" id="engine" value="reuters"> Reuters';
  58.  
  59. directory='<input type="radio" name="engine" id="engine" value="dmoz" CHECKED> DMOZ \r\n<input type="radio" name="engine" id="engine" value="yahoodirectory"> Yahoo Directory';
  60.  
  61. torrents='<input type="radio" name="engine" id="engine" value="piratebay" CHECKED> The Pirate Bay <input type="radio" name="engine" id="engine" value="torrentspy"> TorrentSpy \r\n<input type="radio" name="engine" id="engine" value="isohunt"> ISOHunt ---- Also see <a href="http://89.149.194.215/list_news.html">NewNova<\/a>, <a href="http://www.mininova.org/">MiniNova<\/a>, and <a href="http://scrapetorrent.com/index.php">ISOScrape<\/a>';
  62.  
  63. video='<input type="radio" name="engine" id="engine" value="googlevideo" CHECKED> Google Video\r\n<input type="radio" name="engine" id="engine" value="youtube"> Youtube\r\n<input type="radio" name="engine" id="engine" value="metacafe"> MetaCafe\r\n<input type="radio" name="engine" id="engine" value="archive"> Archive.org';
  64.  
  65. developers='<input type="radio" name="engine" id="engine" value="codebase" CHECKED> Codebase <input type="radio" name="engine" id="engine" value="oreilly"> Oreilly <input type="radio" name="engine" id="engine" value="koders"> Coders <input type="radio" name="engine" id="engine" value="codefetch"> Codefetch <input type="radio" name="engine" id="engine" value="phpdocs"> PHP Docs ---- Also see <a href=="http://www.krugle.com/">Krugle<\/a>';
  66.  
  67. education='<input type="radio" name="engine" id="engine" value="wikipedia" CHECKED> Wikipedia\r\n<input type="radio" name="engine" id="engine" value="citeseer"> Citeseer\r\n<input type="radio" name="engine" id="engine" value="googlescholar"> Google Scholar\r\n<input type="radio" name="engine" id="engine" value="googleanswers"> Google Answers<input type="radio" name="engine" id="engine" value="answers"> Answers.com\r\n<input type="radio" name="engine" id="engine" value="yahooanswers"> Yahoo Answers';
  68. function foo(x){
  69. heh.innerHTML=x;
  70. document.tehmonkey.search.focus();
  71. }
  72. </script>
  73.  
  74.     <div id="foo">
  75.       Search: <a href="javascript:foo(search)">General</a> | <a href=
  76.       "javascript:foo(education)">Education</a> | <a href="javascript:foo(directory)">Directory</a>
  77.       | <a href="javascript:foo(news)">News</a> | <a href="javascript:foo(video)">Vids</a> |
  78.       <a href="javascript:foo(developers)">Developers</a> | <a href=
  79.       "javascript:foo(torrents)">Torrents</a>|***************<span style="font-size:18px">Created
  80.       by <a href="index.html" style="font-size:18px">BliZmA</a></span>
  81.     </div>
  82.  
  83.     <form name="tehmonkey" style="margin:-10 0 5 10" id="tehmonkey" action=
  84.     "test.php" method="post" target="_blank">
  85.       <br>
  86.       <input type="text" name="search" id="search" maxlength='60' size='45' value=""> <input type=
  87.       "submit" value="Search"><br>
  88.       <br>
  89.  
  90.       <div id="heh"></div><script type="text/javascript">
  91. foo(search);
  92. </script>
  93.     </form><br>
  94.     <br>
  95.   </center>
  96. </body>
  97. </html>
  98.  

Aparently it is easy, but maybe teidious writting the same thing out for the 'radio button response php page' (i dont know what the propper name for it is).

If someone could write the main thing with 2 examples of the openurl command or so? enough so i could copy paste n figure out the rest would be EXELENT!!!
Oct 15 '07 #1
3 2826
still needing help on this..
thanks.
Oct 17 '07 #2
Markus
6,050 Expert 4TB
still needing help on this..
thanks.
Japhill, from what i understand, you're not a coder.. you just simply take other peoples codes. If you were actually trying to work on this and not just get people to write scripts for you - i might help, but until then; please stopping making threads on this subject.
Oct 17 '07 #3
ronverdonk
4,258 Expert 4TB
This is a duplicate from the other Radio Button thread in this forum. When you open a problem stick with it and do not open other threads to get more attention. It only annoys people.

moderator
Oct 17 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
I have radio buttons on a form, and when the user makes the selection, it will trigger the event and send the form to the web server and print the selected value. In Case 1, I just use submit...
4
by: Ken Fine | last post by:
I've made a content managment system that uses icons to represent page layouts. To choose a different layout, the user clicks on a radio button associated with each layout icon. On click of one of...
1
by: Brian | last post by:
Hello all... I have a page that will be performing a search. The search consists of 3 radio button options. The first 2 will search the entire web through google and the site as indexed by...
3
by: steve | last post by:
Hi all What I'm trying to achieve is: I have a form with two radio buttons, if a visitors check radio button 2 and click submit in the next page radio button 2 to be check by default If I...
3
by: steve | last post by:
Sorry if I have post this two times. Hi all What I'm trying to achieve is: I have a form with two radio buttons, if a visitors check radio button 2 and click submit in the next page radio...
1
by: Karthick Kumar | last post by:
Hi, I have the following code which displays all the images from a specific folder with a Radio button in it: Dim objFile i = 1 For Each objFile In objFolder.Files If (i = 1) Then...
2
by: NishSF | last post by:
Would anyone have any suggestions/javascript code so that if one clicks the Radio Button "Yes" below he has the option of selecting any of the six CheckBox below. If the user clicks on Radio Button...
11
by: Twayne | last post by:
Hi, Newbie to PHP here, no C or other relevant background, so pretty niave w/r to the nuances etc. but I think this is pretty basic. XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server...
5
by: satyabhaskar | last post by:
hi all, In my web page i have created radio buttons dynamically on to the page .....following is my code string Course, Semester, Section; int rowsCount; string con =...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.