home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Networking and Internet
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2242
Discussions: 186,591, Posts: 2,226,870, Members: 230,214
Free Scan: Update Your PC's Outdated Drivers to Optimize Performance
Old March 26th, 2003, 05:00 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Oct 2001
Location: NJ
Posts: 321
html coding problem....

I'm doing a form where you enter a username, password and comments. When you hit 'submit' it's supposed to log you in automatically into my ftp server, using the username and password provided in the form.

I though it would be possible to do something like this:

<input type="hidden" name="success" value="ftp://username:Password@myftp.com/">

but apparently it doesn't work.

If 'username' and 'password' are my 2 variables (the name of my fields) can I send them with the link so it opens that user automatically in the FTP?

I already tried putting a real name like:
<input type="hidden" name="success" value="ftp://john:smith@myftp.com/">

and it worked....

Do I make sense?

Thanks

Mr. NoOne is offline   Reply With Quote
TechIMO.com Ads - Login or register for less ads.
How many errors does your computer have?

You no longer need to guess! This free stability scan and registry cleaner download will give you a complete diagnosis of your Windows registry, identifying errors and conflicts.

FREE instant scan


Guest, Register Free! to remove this ad and get your tech support questions answered in minutes!
Old March 26th, 2003, 05:07 PM     #2 (permalink)
Ultimate Member
 
golfcart's Avatar
 
Join Date: Oct 2001
Location: Michigan
Posts: 1,767

golfcart is offline   Reply With Quote
Old March 27th, 2003, 01:43 PM     #3 (permalink)
Member
 
Join Date: Oct 2001
Location: NJ
Posts: 321
Good one!

Although it doesn't work in my case....

Here's what I have...

it's a form that when you hit 'Submit' it uses a CGI to send an email with the contents of the form (i don't know CGI, so i didn't wanna touch that), also at the same time you hit Submit it's got the following...

<input type="hidden" name="success" value="ftp://admin:abcd@myftpserver.com/">

Now, that line works and I receive the email...but, I don't want everybody to login as 'admin' of course...so I tried to do a string concatenation, using the fields from the form, like this:

<input type="hidden" name="success" value="ftp://" + form.username.value + ":" + form.password.value + "@myftpserver.com/">

It didn't work......

Any other ideas????

Mr. NoOne is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

Most Active Discussions
heatsink issue (8)
Is It Just Me? (492)
Why Does the MOON Grow Bigger as It.. (11)
New Mobo (16)
UPGRADING C/D DRIVE TO 250GB & .. (10)
1 internet. 1 house. 3 computer. ho.. (10)
Is This A Compatible Gaming PC? (16)
Connected to LAN but unable to use .. (5)
Best AGP Card? "Best Bang for.. (12)
Recent Discussions
heatsink issue (8)
Hard Core Overclock (7)
FS: New Benny Hill Megaset DVD .. (6)
Computer won't start (2)
New Mobo (16)
1 internet. 1 house. 3 computer.. (10)
Request for recovary system ins.. (0)
Folderchat: The Holiday thread (111)
am2 on 939 (4)
Folderchat Weekday thread (411)
FS: Dell 6000 laptop, modded 36.. (2)
Apple iPod touch 16 GB $200 (4)


All times are GMT -4. The time now is 11:46 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28