473,608 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Radio Button response - continued.

11 New Member
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)incomple te 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 2836
jahphill
11 New Member
still needing help on this..
thanks.
Oct 17 '07 #2
Markus
6,050 Recognized Expert Expert
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 Recognized Expert Specialist
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
18559
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 button, without any event handling, and it works fine. However, in Case 2, which is what I am trying to do, it has the problem that even when the user clicks the button, it won't show the value automatically. But wait until user selects another...
4
3598
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 the radio buttons, the form submits and a new layout is chosen. I would prefer if people can click on the icons themselves , rather than using the radio buttons.The border or background associated with the selected icon can highlight...
1
6310
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 google. The 3rd option I want to search the site using MS-Index Server. I can get them to run individually but I'm not sure how to set the parameters and test for the 3rd radio button (index server) selected on the page. I thought that, for...
3
492
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 use this code <% If Request.Item("col")="firstcoll" Then Response.Write "Checked"%>
3
8744
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 button 2 to be check by default If I use this code
1
3313
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 Response.Write("<TR>")
2
3473
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 "No", he should not have the option of clicking on any of the six checkboxes. See Code attached. Thank you so much in advance for your help as I can't get to make this combo work. <p>Did you have any problems finding any of the information...
11
2264
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 6.something I think and running as a service, Using NoteTab Pro as an IDE (works well). If you need more, just ask. In one functioning form:
5
6689
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 = ConfigurationManager.ConnectionStrings.ConnectionString; protected void Page_Load(object sender, EventArgs e) { try
0
8063
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8496
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8475
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8148
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6816
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4024
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1594
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.