Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-03-2009, 04:35 AM   #1 (permalink)
kirkslater
Recruit
 
Join Date: Mar 2009
Posts: 1
kirkslater is on a distinguished road
Unhappy Help, need a quick fix code!!

Hi Guys

I'm looking for a quick fix code.

I need a form with a text box input and a submit button.
And the action I need is:

1. Enter 'Hello' (or whatever) into the text box
2. Click the submit button
3. It takes you to the link www.google.co.uk/Hello

Many thanks for all your help

Kirk
kirkslater is offline   Reply With Quote
Old 03-03-2009, 10:22 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,706
sde is on a distinguished road
HTML Code:
<input type="text" id="q" /> <input type="button" onclick="window.location='http://www.google.co.uk/'+document.getElementById('q').value;" />
__________________
Mike
sde is offline   Reply With Quote
Old 03-04-2009, 09:01 AM   #3 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 841
DJMaze is on a distinguished road
or:
HTML Code:
<input type="text"/><button type="button" onclick="window.location='http://www.google.co.uk/'+this.previousSibling.value;">go</button>
Note: don' t use space between the two elements or else you need this.previousSibling.previousSibling.value
__________________

UT: Ultra-kill... God like!

Last edited by DJMaze; 03-04-2009 at 09:04 AM. Reason: added note
DJMaze is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick C# Help dave120 MS Technologies ( ASP, VB, C#, .NET ) 1 05-08-2007 02:23 PM
SDE (or anyone), quick pls. Valmont Lounge 1 03-16-2005 09:06 AM
Some quick help decyphering phpinfo() DavH27 PHP 2 11-17-2004 08:46 AM
quick & dirty app for xp sde Windows 6 07-25-2003 07:43 PM
Quick Reply Box Admin Feedback 2 07-09-2003 07:15 AM


All times are GMT -8. The time now is 06:08 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting