HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
search form poblem
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
hughh



Joined: 21 Jun 2004
Posts: 2

PostPosted: Mon Jun 21, 2004 8:20 pm     search form poblem Reply with quote

Greetings,

I have a website where I want a client to log in and then it takes them to a private page, on this page I need to hardcode an anchor which contains an IP pointing to a directory on a remote server. The remote page has a simple search box inside the html which allows someone to enter in their username in the search field and it will find their remote server. Is it possible to auto insert the username in the private pages search field from my websites page and have the search button pressed so it seems as one smooth transition?

Thanks

Hugh
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8269
Location: Castle Rock CO USA

PostPosted: Tue Jun 22, 2004 3:52 am     Reply with quote



It is possibly if you are using PHP or ASP. You can obtain the user name & passit to the next page & reference it in the input field
hughh



Joined: 21 Jun 2004
Posts: 2

PostPosted: Tue Jun 22, 2004 5:37 am     Reply with quote

thats great news! How would I do that in asp? what type of script is it?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8269
Location: Castle Rock CO USA

PostPosted: Tue Jun 22, 2004 5:53 am     Reply with quote

Once you have grabbed the correct input field from the previous page, just do something like this:
Code:

Dim EMail
<head>
</head>
<body>
<form>
<input type="text" name="Email" size="20" value="<%Response.Write("EMail")%>">
</form>
</body>

Of course, you can Dim any input field & write that into the input. If you do not want them to change it you can use:
Code:
<input readonly type="text" name="Email" size="20" value="<%Response.Write("EMail")%>">
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Tue Jun 22, 2004 6:07 am     Reply with quote

Cory, I have never looked at ASP. I write Perl and am learning PHP. Would you suggest I add ASP to my list?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8269
Location: Castle Rock CO USA

PostPosted: Tue Jun 22, 2004 6:14 am     Reply with quote

Well you can do it in PHP also. I would have to look around. You said you wanted the ASP code so that was why I gave it to you. Plus if you are not on a Windows platform, ASP won't work unless ChiliASP is installed on the Unix box.

I do not mess with PHP all that often, let me check around to see what that code is.
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Tue Jun 22, 2004 6:20 am     Reply with quote

Sorry Cory, but it wasn't my topic, hughh asked for the ASP. I just jumped into the middle of things and created a bit of confusion! Very Happy
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8269
Location: Castle Rock CO USA

PostPosted: Tue Jun 22, 2004 6:36 am     Reply with quote

Ah Sorry Smile I missed that - been up for a few hours & just answering the questions. I got confused. LOL

As far as learning - it is all up to you. A lot of programmers like PHP. I host on Windows myself & all of our programs are built in ASP with the exception of our KB.

My programmers know both just in case someone wants the program in PHP, but most of our clients do not mind / care. I just do not really get involved in the big ASP/PHP and Windows/Unix debate. Everyone has their own personal preferences.
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Tue Jun 22, 2004 6:42 am     Reply with quote

Do the ASP files process from the web root directory or do they have to be located in the CGI folder like the rest of them?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8269
Location: Castle Rock CO USA

PostPosted: Tue Jun 22, 2004 6:49 am     Reply with quote

They work in any folder - does not matter. As long as ASP is enabled on the server - you can have ASP code in thousands of folders.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial