| View previous topic :: View next topic |
| Author |
Message |
hughh
Joined: 21 Jun 2004 Posts: 2
|
Posted: Mon Jun 21, 2004 8:20 pm search form poblem |
|
|
|
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
|
Posted: Tue Jun 22, 2004 3:52 am |
|
|
|
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
|
Posted: Tue Jun 22, 2004 5:37 am |
|
|
|
| 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
|
Posted: Tue Jun 22, 2004 5:53 am |
|
|
|
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
|
Posted: Tue Jun 22, 2004 6:07 am |
|
|
|
| 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
|
Posted: Tue Jun 22, 2004 6:14 am |
|
|
|
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
|
Posted: Tue Jun 22, 2004 6:20 am |
|
|
|
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!  |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8269 Location: Castle Rock CO USA
|
Posted: Tue Jun 22, 2004 6:36 am |
|
|
|
Ah Sorry 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
|
Posted: Tue Jun 22, 2004 6:42 am |
|
|
|
| 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
|
Posted: Tue Jun 22, 2004 6:49 am |
|
|
|
| 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. |
|
|