LurkerPatrol 0 Newbie Poster

Nevermind guys, I figured out a workaround.

LurkerPatrol 0 Newbie Poster

Hi everyone,

So I have a form that I'm running which has an option to upload a resume.

The form itself is actually multi-page but it all sits inside 1 asp file. The way I manage that is to use a select function and case function and depending on the "page" it will display the appropriate form material.

I have loaded in some asp code that I found online for uploading, and it works when it's stand-alone.

However when I incorporate it into my form code, it gives me the error

Request object error 'ASP 0206 : 80004005'

Cannot call BinaryRead

/members/Loader.asp, line 36

Cannot call BinaryRead after using Request.Form collection.

My code is as such

<%@LANGUAGE="VBSCRIPT"%>
<% Option Explicit %>
<!--#include virtual="/Connections/CTRI_Web.asp" -->
<!--#include file="Loader.asp"-->
<%
	Const NUMBER_OF_PAGES = 4
	Const DBOR = true
	
	Dim intPreviousPage
	Dim intCurrentPage
	Dim strItem
	Dim AbortMessage
	Dim AlertMsg
	Dim email
	Dim pw
	Dim pwconfirm
	Dim gonext
	Dim results
	Dim fitem
	Dim eMailResults
	Dim UploadAbortMessage
	Session("fileName") = ""
	Session("filePath") = ""
	Session("extension") = ""
	Session("eemail") = ""
	Application("pathToFile") = ""
%>
<% Function uHaul()
	Response.Buffer = True

	' load object
	Dim load
		Set load = new Loader
		
		' calling initialize method
		load.initialize
		
	' File binary data
	Dim fileData
		fileData = load.getFileData("file")
	' File name
	Dim fileName
		fileName = LCase(load.getFileName("file"))
	Session("fileName") = fileName
	' File path
	Dim filePath
		filePath = load.getFilePath("file")
	' File path complete
	Dim filePathComplete
		filePathComplete = load.getFilePathComplete("file")
	' File size
	Dim fileSize
		fileSize = load.getFileSize("file")
	' File …
LurkerPatrol 0 Newbie Poster

Hi CTS,

Thank you for the advice on the structure of the code. A couple of clarifications for you:

1. I'm staying within the same page and using select case statements to change the form based on the "current page" that you are on. Basically it's trying to mimic a multi-page form without ever leaving the first page.

2. The carats/brackets after Next and Back are just the values for the submit buttons on the bottom of the form. Aka Next > and < Back. They both have the name "navigate" and so it's basically trying to figure out which of the 2 buttons was pushed and what to do based on what button was pushed.

I realized after some more exhaustive research that there is no break out of a select case statement, except to do

For i = 0 to 1
Select Case Request.Form("Navigate")
           Case "< Back"
                   intCurrentPage = intPreviousPage - 1
           Case "Next >"
                   If Request.Form("cPW") = Request.Form("cPWconfirm) Then
                      intCurrentPage = intPreviousPage + 1
                   Else
                      AbortMessage = "Password Mismatch, please try again"
                   Exit For
                   End If
...

I have changed my code now to use StrComp to compare the 2 passwords, as it seems more clean and efficient.

LurkerPatrol 0 Newbie Poster

So I'm coding a form in html and ASP and so far I have it working perfectly in terms of going from one page of the form to the next and shooting off an email at the end as verification of the form input.

What I've just inserted into the code now are some new form elements, namely a password and confirm password (this is for a member registration form).

What I want is for the page to proceed to the next part of the form if the password is the same as the confirm password, and to blast an error if the password values are not the same.

The select case statement that involves moving from one page to another (which worked until I inserted the bolded items) is this

Select Case Request.Form("navigate")
	Case "< Back"
		intCurrentPage = intPreviousPage - 1
	Case "Next >"
		[B]If Request.Form("cWP") = Request.Form("cWPconfirm") Then[/B]
		intCurrentPage = intPreviousPage + 1
		[B]Else
		AbortMessage = "Password mismatch, please re-enter and reconfirm password"
		
		End If[/B]
	Case Else
		' Either it's our first run of the page and we're on page 1 or
		' the form is complete and pages are unimportant because we're
		' about to process our data!
		intCurrentPage = 1
End Select

I want to break out of the select statement once I reach the password mismatch, but the term "break" does nothing in ASP, so I'm wondering what is it's equivalent, or if there is even a way in the first place …

LurkerPatrol 0 Newbie Poster

Hello Airshow,

Thank you for the wonderful advice! I understand your code, and will try to implement it in my own website.

So this removes the need to stick a whole bunch of the same code in all the text boxes that you have right? I think that's awesome and extremely efficient. It's probably best as right now my form is mainly a dummy form as I sort of etch out the details (including data I/O, accessing and writing to a database, among other things). Once I flesh out those pieces then I will code in the actual form, with all the elements of it. But by then if I have the majority of the back-end code worked out then it's just a matter of putting in

<input type="text">
<input type="radio">

and what-have-you everywhere.

LurkerPatrol 0 Newbie Poster

Hi Guys,

I'm working on a form and was wondering if this is the simplest/only way to clear input text on a form and have it come back if the field is left blank.

<p> Name: <input type="text" value="First Name" name="fname" onfocus="if(this.value == 'First Name'){this.value=''};" onblur="if(this.value==''){this.value='First Name'};"/>
<input type="text" value="Last Name" name="lname" onfocus="if(this.value == 'Last Name'){this.value=''};" onblur="if(this.value==''){this.value='Last Name'};"/></p><br /> 
<p> Phone number: <input type="text" name="phone" value="(555) 555-5555" onfocus="if(this.value == '(555) 555-5555'){this.value=''};" onblur="if(this.value==''){this.value='(555) 555-5555'};"

Many thanks,
LP

LurkerPatrol 0 Newbie Poster

Hi all,

Been a while since I posted on this forum because I've had just an awesome time with my new computer. It may not be the greatest gaming machine on earth but it does the job and I don't really play that many graphics intense games (until now).

See my comp currently has an Nvidia GeForce 8600GT. 256 MB of course and it's a fairly decent card. I can play call of duty 4 and the fps goes anywhere from 25-60 (25 at the foliage-heavy areas). I'm thinking of upgrading to the 8800 GT or even possibly the 9600 or 9800 GT (if I have the money for it). More likely than not it'll be the 8800 GT (as its powerful enough and cheap).

I'm just worried if my motherboard can handle the card and if my power supply will be sufficient. My comp brand and model is a Dell XPS 410. I'm most worried about my mobo having a PCI X16 1.1 (I'm not sure if it has a 1.1 or 2.0, I'm just worried that it has a 1.1 rather than a 2.0) versus the X16 2.0 that the 8800GT and 9-series cards are now using. And again as I stated before, I'm worried if the power in my power supply will suffice.

I'm not sure what tool I can use to figure out what hardware I have. Do I need to crack open the case before I find any answers or is …

LurkerPatrol 0 Newbie Poster

Ok I have a really odd one for you guys. I've noticed that whenever I plug in my printer, my external HD, or even my iPod, my CPU doesn't go up, but my fan starts whirrring and purring like crazy. This doesnt happen with all USB devices, such as my mouse or my thumb drive, but with these others it does.

This still exists even after reformatting my computer and checking for viruses and stuff.

My comp is:

Sony Vaio PCG-K25
2.8 GHz P4
1 GB RAM (128 MB devoted to IGP vid card).
SP2 on XP pro
~2 years old

I don't know if I have some overheating problem or if there's dust in my fans or what, and it's getting really annoying. Sometimes I get a little bit lagged when I do my work, but the CPU isnt being used up at all. HELP!

LP

LurkerPatrol 0 Newbie Poster

Hi Bass,

This sort of sounds like it could be a RAM issue or video card memory issue in that you might not have enough RAM or vid card memory to smoothly run everything. How much RAM do you currently have in your computer, and how much maximum are you allowed? What kind of a video card do you have, and how much memory is allocated to it?

LP

LurkerPatrol 0 Newbie Poster

Darren,

Thanks a lot, that did the trick! Now it starts up clean and shiny. Aaaah I love it so much! Yay! :-).

LP

Edit: Oh yeah I added +rep. Thanks so much!

LurkerPatrol 0 Newbie Poster

Hello to all the geniuses and tech wizzes out there. I just reformatted my computer (knowing only a little about after visiting some sites with instructions on reformatting). I had XP pro installed on my main partition when I did RF and I had installed XP pro on the same partition after wiping it of every last byte of data. Everything went smoothly, no problems at all, until restarting. Whenever I turn on my computer, I get an option to choose between 2 XP pros. If I select the first one, everything works, however the second just gives an error and I have to reboot my computer again. Is there any way to get rid of this options business at the beginning of startup?

Thanks so much for any help and advice you can give.

LP

LurkerPatrol 0 Newbie Poster

Ah yes I guess I gave pretty bad directions there didn't I.

Well first did you obtain BHOdemon? How about unlocker? You can google unlocker and it should be the first link.

http://ccollomb.free.fr/unlocker/

BHOdemon is here: http://www.definitivesolutions.com/bhodemon.htm

Scroll to the bottom of the page to dl it.

Next in normal mode, run bhodemon and see if your explorer.exe has more than 2 things on it. Usually the first 2 things are Adobe and then Symantec or Norton (if you have it).

If you have a 3rd thing, whatever it is, write down the name of it. Then first disable it directly in bhodemon.

Next find out where this puppy is hidden. Mark that.

Now go into safe mode.

In safe mode use unlocker (if needed) or just straight delete to delete the file at the location you marked earlier.

Next (also in safemode), run regedit to get into the registry, and keep searching for instances of the file (that you had written down earlier). Whenever you find something, delete it.

Et voila, your computer should be good as new.

I hope this helps. Let me know if you encounter any more problems.

LurkerPatrol 0 Newbie Poster

It's alright I fixed the issue. Apparently I had a vundo trojan that was undetected by Norton, spybot, and adaware. Found it attaching itself to winlogon.exe and explorer.exe so I used BHO Demon to disable it. Went into safe mode. Went into the registry and removed all instances of the dll file from the registry (wvwts.dll). Then I removed the threads of wvwts.dll in winlogon.exe using process explorer and then using unlocker I removed the dll file from my system (it was in C:\WINDOWS\System32

If anyone else has this problem and needs some extra direction please let me know and I will be happy to assist. Sorry to bother everyone like this. Hope my discovery helps others.

LurkerPatrol 0 Newbie Poster

My god am I frustrated with this one. My explorer.exe keeps randomly jumping to 99% CPU and staying there. I don't have a clue as to why. I've already scanned for viruses, spyware, and adware with Symantec Antivirus, spybot, and ad-aware under safe-mode twice and I found and deleted everything the first time. I disabled a few unnecessary processes like quicktime and stuff, and I thought I had it going well at one pt when it wasn't at 99% CPU for a while (several hours). Then today I log on to firefox, check my email, listen to some music and suddenly its going up for no reason. Anyways, here is my hijackthis log. I shut off explorer.exe before doing this and I ran it in normal mode not safe mode.

Any help you can give would be great. Thank you all so much in advance.

EDIT: Forgot to add, I'm running Win XP Pro on a 2.8 GHz Sony Vaio with 1024 MB of RAM (1 GIG), 128 MB of the RAM is taken up by the vid card (Integrated). I have a 25 something GBs left of HD space (I know that shouldn't REALLY matter unless I'm down to the 1-digits).

Logfile of HijackThis v1.99.1
Scan saved at 2:44:51 PM, on 9/8/2006
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\Ati2evxx.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\Program …