Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming > ASP and ASP.NET
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 10-27-2009, 01:19 PM
  #1
rollingdice
Novice (Level 1)
 
Join Date: Oct 2009
Posts: 7
iTrader: (0)
rollingdice is an unknown quantity at this point
Form data to ASP file

I cannot get my form to write to my asp file for the life of me.

My website is rollingdice.byethost32.com you'll notice a login form with two simple txt fields. I have the action set to the name of the asp file ("logins.asp").

The asp file looks like this


Code:
<html>
<body>
<%
'declarations
Dim username, password
'initiate declarations
username=Request.Form("username")
password=Request.Form("password")
'print input
Response.Write("Username: " & Request.Form("username") & "<br />")
Response.Write("Password: " & Request.Form("password") & "<br />")
%>
</body>
</html>
If someone could please tell me what i'm doing wrong it would be much appreciated
rollingdice is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-28-2009, 08:42 AM
  #2
afterburn
Can't say much here
 
afterburn's Avatar
 
Join Date: May 2004
Posts: 2,832
iTrader: (0)
afterburn will become famous soon enough
the issue is your path of the form action. "./Logins.asp" is not a valid path "../" would force the browser to post the data up one directory to the file Logins.asp.
__________________
ASP.net nice bits
Code Smith rocking tool for Code Generation in any language (Written in .net)
Red Gate SQL tools for DBA
Blog Personal blog
.afterburn
afterburn is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-28-2009, 04:01 PM
  #3
rollingdice
Novice (Level 1)
 
Join Date: Oct 2009
Posts: 7
iTrader: (0)
rollingdice is an unknown quantity at this point
The only reason i had the action set like that is because i've tried it other ways such as a relative link without any / and just having it say action="Logins.asp" and i've tried using an absolute link like this action="http://www.rollingdice.byethost32.com/Logins.asp. Both result in the page being redirected to a blank page that says:

Code:
<% 'declarations dim username, password 'initiate declarations username=Request.Form("username") password=Request.Form("password") 'print input Response.Write("Username: " & username & "
") Response.Write("Password: " & password & "
") %> You have typed the user name <%=Request.Form("userName")%> and the password <%=Request.Form("password")%>.
rollingdice is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-28-2009, 04:22 PM
  #4
afterburn
Can't say much here
 
afterburn's Avatar
 
Join Date: May 2004
Posts: 2,832
iTrader: (0)
afterburn will become famous soon enough
did you view the source after it was submitted? it does not look like you are using a windows server as the ASP is not being run; but instead being sent to the client.
__________________
ASP.net nice bits
Code Smith rocking tool for Code Generation in any language (Written in .net)
Red Gate SQL tools for DBA
Blog Personal blog
.afterburn
afterburn is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-28-2009, 08:17 PM
  #5
rollingdice
Novice (Level 1)
 
Join Date: Oct 2009
Posts: 7
iTrader: (0)
rollingdice is an unknown quantity at this point
In my last post the code shown was directly from the page, not the source. And does that mean that the server i'm using doesn't support asp? It's a free host.... Also, if the server doesn't support asp is there any alternative to accomplishing this!?
rollingdice is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-29-2009, 02:10 PM
  #6
afterburn
Can't say much here
 
afterburn's Avatar
 
Join Date: May 2004
Posts: 2,832
iTrader: (0)
afterburn will become famous soon enough
I looked at the page; the server does not. You can try PHP or ask your service provider ...
__________________
ASP.net nice bits
Code Smith rocking tool for Code Generation in any language (Written in .net)
Red Gate SQL tools for DBA
Blog Personal blog
.afterburn
afterburn is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-14-2009, 05:33 PM
  #7
longcall911
Battler (Level 3)
 
Join Date: Oct 2004
Location: Northern NJ, USA
Posts: 23
iTrader: (0)
longcall911 is on a distinguished road
Quote:
Originally Posted by rollingdice View Post
In my last post the code shown was directly from the page, not the source. And does that mean that the server i'm using doesn't support asp? It's a free host.... Also, if the server doesn't support asp is there any alternative to accomplishing this!?
If it is a free host, chances are it's a Linux machine. You need a Windows machine (IIS) to run ASP / VBscript. There are some good ones that are cheap, but I don't know of any free Windows web hosts.

/*tom*/

----------------------------------------------------
Make your meeting interactive with an audience response system.
longcall911 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


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



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 07:44 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.