Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Trying to enter some variables into a form
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

snowsurfer
New Member

64 Posts

Posted - 11 March 2005 :  10:28:09  Show Profile
This actually all started with the Universal Login Mod. I have that working, but I am having trouble with something else. I am not in the snitz directory. I have the universal login mod, autenticate the user, then the user can submit a review. I am trying to pull in the user name to post with the data.
The line I am having trouble with is around 353. It start with <input name="votename" type="hidden" id="votename"

You can see the page in action at http://www.norcalmotocross.com/z.asp?ID=55

You can login in as test test

The problem I am having is the user name is posting like this
& Session(strCookieURL & (

I can tell it has something to do with the quotes, but I cant quite figure it out.

You can see the results at
http://www.norcalmotocross.com/detailride.asp?ID=55

Thanks guys

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 11 March 2005 :  10:56:52  Show Profile
Can you post a link to a *.txt copy of the file that contains your form or post the line of code that writes the username field?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

snowsurfer
New Member

64 Posts

Posted - 11 March 2005 :  12:20:16  Show Profile
Oh yeah, I thought I did

Here ya go

http://www.norcalmotocross.com/review.txt
Go to Top of Page

snowsurfer
New Member

64 Posts

Posted - 11 March 2005 :  20:43:33  Show Profile
I made some changes and updatd the review.txt. I pulled this frm the inc_login.asp page.
& Session(strCookieURL & "username") & " (" & Session(strCookieURL & "userid") & ")

Thats what I am trying to post to my database. The username.

I know its something simple from here.
Go to Top of Page

snowsurfer
New Member

64 Posts

Posted - 13 March 2005 :  20:12:13  Show Profile
I am still banging my head on this. Why would inc_header.asp be able to read the database and use
Response.Write	"<b>" & Session(strCookieURL & "username") & " (" & Session(strCookieURL & "userid")

to display your login name

yet when I try and use
& Session(strCookieURL & "username") & " (" & Session(strCookieURL & "userid")

to insert the username into a database it wont work
Go to Top of Page

snowsurfer
New Member

64 Posts

Posted - 14 March 2005 :  01:23:55  Show Profile
FIXED IT

WOO HOOOOOOOOOOOO

I am a knucklehead. My forum is using DB authentication not NT authentication.

The line needed to be value="<%= ChkString(strDBNTUserName, "display")%>">
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07