Current location: Hot Scripts Forums » General Web Coding » JavaScript » help plzz in a user name field and password


help plzz in a user name field and password

Reply
  #1 (permalink)  
Old 12-21-03, 05:16 AM
MaKRoF MaKRoF is offline
New Member
 
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
help plzz in a user name field and password

hi,

i am new here

i know my problem will be easy to you

i want a field for user and a button for lanching

when a user but his name in the field and press go
it open a link like this

http://www.yahoo.com/guest=

for example: if i enter a user " Makrof " then i pressed go
it open direct a link in the same page with out refresh the page or open a new one or the file php. like thi

http://www.yahoo.com/guest=Makrof <== he put my user at the end

if i choose " John " as a user it will be

http://www.yahoo.com/guest=John

look at the pic i attached
thank you all i hope and i am sure it is easy for you
Reply With Quote
  #2 (permalink)  
Old 12-21-03, 07:36 AM
snaip's Avatar
snaip snaip is offline
iNET Interactive
 
Join Date: Nov 2003
Posts: 997
Thanks: 2
Thanked 7 Times in 6 Posts
Hi MaKRoF,

Welcome to programmingtalk.com!

Here you are:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>
      Yahoo! GuestBook Search
    </title>
    <script type="text/javascript">
//<![CDATA[
function Gofindit(){
 var searchfor = document.formsearch.findthis.value;    
{                                
 var FullSearchUrl = 
"http://www.yahoo.com/guest=" + searchfor ;
location.href = FullSearchUrl;
}}
//]]>
    </script>
  </head>
  <body>
    <form name="formsearch" action="">
      Search GuestBook: <input name="findthis" size="40"
      type="texT" /> <input type="button" value="Go Find It"
      onclick="Gofindit()" />
    </form>
  </body>
</html>
__________________
Regards,
Ahmad Permessur
Team HotScripts
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to see if 'yes' is in a field of a mysql table? x2z PHP 2 11-08-03 08:25 AM
sending email acknowledgement to user after registration onlynils PHP 3 07-04-03 02:05 PM


All times are GMT -5. The time now is 11:37 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.