Jump to content

nut

Members
  • Posts

    4
  • Joined

  • Last visited

nut's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hey guys,Thanks for all the help and quick responses.Here's what I ended up with and it seems to work but I don't know why.Since I don't really know what I'm doing I wondered if I could set the username into a cookie and somehow read the cookie. Sounds good to me so I changed the document.write line tostrInfo = objNetwork.UserNamedocument.cookie = "username=" & strInfoThis somehow seems to write it into a variable username. On the post page I set $user to $_REQUEST['username'] and viola there it is.Don't know why but on to testing with different IE'sThanks again
  2. nut

    echo a number

    if you mean set the beginning value for num for query you could add a where clause( WHERE num >= ' yourbeginning value ' )else if you mean to increment variable value how about something like ++$row['num']for your fetch statement check your variable name. you defined $result1 but you use $result in your loop.
  3. Thanks justsomeguy, but I don't get it. How do I get the value/username from the vb script into the temp.src line that you listed. I am trying it this way because it's the only way I could find to get the windows username. I'm not adverse to java if it can solve my problem. It's all new to me so learning one way or another doesn't matter.
  4. Not sure if this should be asked here or VB forum.I am new at this so bear with me if my thinking is flawed.I am trying to pull windows username for an intranet site I am working on. I can modify IE to allow what I need for it to work. I have pieced this VBScript together to pull username.$user = '<script language=VBScript> Option Explicit Dim objNetwork Dim Shell set shell = createobject("wscript.shell") set objNetwork = createobject("wscript.Network") document.write(objNetwork.UserName) </SCRIPT>';Now my stupidity. If I echo $user ( ie: echo "user = $user" it returns the username. How can I get this back to the server? I tried to post action=pagename.php?user=$user but the value at the posted page is the script ( ie. <script .......... ) not the username. What should I do to fix this or is there a better way to do this?All help apprieciated.
×
×
  • Create New...