Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

ASP help please..

This is where you can discuss your homework, family, just about anything, make strange sounds and otherwise discuss things which are really not related to the Lancer-series. Yes that means you can discuss other games.

Post Wed Jun 16, 2004 11:40 pm

ASP help please..

first i'd like to see if any1 recognizes me..heh
this has nothing to do with FL soo.....
second my prob is that text box tend to shorten texts with apostrophies
and dish out errors when processed by ASP.
like input MY'NAME typed by user in Form.asp textbox will only be interpreted by MY when it arrives in process.asp

Post Thu Jun 17, 2004 12:23 am

in TLRish? ()

Post Thu Jun 17, 2004 12:38 am

First: I don't know how to fix this problem (likely Taw or Esquilax can help)

Second: An oldie, a veteran! Good to see Ajim!

-- The Lancersreactor: where the screenshots are never blurry, and the spammers get publically kicked around.

The Lancersreactor FAQ
The use of signatures

Post Thu Jun 17, 2004 12:42 am

More of a web programming thing, Grom or Archie would be your better bets.

EDIT: Oh and I do remember you Ajim.

Edited by - Mustang on 6/17/2004 1:43:17 AM

Post Thu Jun 17, 2004 1:31 am

I haven't got a clue - not even a shade of a prgrammer, meh. Grom, Chet, Arch, Stinger, any of the programmy-web types. Esq might know a bit as well, he does a lot more on that side of things than I do.

and I remember you too

..there is nothing better in life than writing on the sole of your slipper with a biro..

Edited by - Tawakalna (Big Monkey) on 6/17/2004 2:31:57 AM

Post Thu Jun 17, 2004 3:58 am

Woahh, Ajim under what piece of earth have you been hiding?? Nice to see you lad.

As for your question, I am kind of a newb on this one, so I'll leave it to the old 'uns

Post Thu Jun 17, 2004 4:56 am

Sorry chap, I leave ASP for the monkeys....just give me a set of crayons and I'll rustle ya something sweet up ....but PHP,ASP,.NET etc etc....I only need to know how to build templates in each, and have a good understanding of the limitations of the technology because we pay people to do the keyboard hammering for us

Actionscript, XML, HTML, DHTML, Javascript, I'm your man....actionscript especially, I give lectures on the language. Dreamweaver's ASP capabilities mean I don't have to know stuff like this any more...(yey!)...if you are reaaaallly stuck, I'll get my monkeys onto it for you, let me know if no-one else here can answer it.

Best I can offer. Sorry!

Post Thu Jun 17, 2004 6:55 am

You can use a SIZE tag however if your input is larger then your size it will wrap the content.
It's been a while for me and ASP but I think you can use a MAXLENGTH tag too.

A good site for ASP is www.asp-help.com

zlo

Post Thu Jun 17, 2004 8:25 am

I have no ideas concerning your problem, but I couldn't resist welcoming you, so WB, Ajim!

Wisdom comes with age. But sometimes age comes alone...

Post Thu Jun 17, 2004 9:31 am

helooo

write your code out plz, your english is not, how you say, too good.


"If i told you a secret you wont tell a soul,
will you hold it and keep it alive"

Post Thu Jun 17, 2004 11:19 am

if I say your name enough times do you magically appear?

..there is nothing better in life than writing on the sole of your slipper with a biro..

Post Thu Jun 17, 2004 1:18 pm

yes, me and derek smark are kindered spirits, but he's the reasonable one and i'm the asshole.

anyway, i've been in london since tuesday.

Post Thu Jun 17, 2004 4:36 pm

nice that you mispelled derek smar (insert final letter between s and u) thus avoiding summoning his baleful Shoggoth-like presence.

nobody try it!

..sign on you crazy diamond..

Post Thu Jun 17, 2004 4:58 pm

Hi guys, thx for wecoming me, seems still got ppl remembered me heh..
anyways here's the code...

Here is a code form FRM_Admin.asp:
<pre><font size=1 face=Courier>
response.write("<form name='form1' method='post' action='PRC_Admin01.asp'>" )
response.write("<p>Secret Q:<br>" )
'picks SecretQ form table login and insert it into Form
stmt="SELECT SecretQ FROM login where user='" & name & "'"
str1=""
set oRS1=Server.CreateObject("ADODB.recordset" )
oRS1.Open stmt,oConn
do while not oRS1.EOF
for each objField in oRS1.fields
str1 = objField.value
Next
oRS1.movenext
Loop
oRS1.close
set oRS1=Nothing

Response.Write ("<input type='text' name='txt2' value='" & str1 & "' size='50'></input>" )
response.write("</form'>" )

</font></pre>

Here's a partial Code form PRC_ADMIN01.asp:
<pre><font size=1 face=Courier>
SecretQ=Request.Form("txt2" )
'tried this part from some web i searched,
'but failed miserably
s = SecretQ
s.replace "'","''"
response.Write(s)

'UPDATE SecretQ in table login
sql="UPDATE login SET SecretQ = '" & SecretQ & "' WHERE user = '" & user & "'"
</font></pre>
well the real code included more than just 1 textfield so i took the important parts only which displays error when i submit the data..
Basically the problem is i cannot hadle user's who submit data with apostrophe's
such data such as:
<pre><font size=1 face=Courier>
Hi I ' m ada developer
</font></pre>
the problem starts at HTML but most solutions i c in webs is using double apostrophe's but thats when handling SQL. The peroblem starts before sql.
How to handle the problem, I really hope someone can make some suggestions.
right now i can only think of Limiting the users info by putting notes on the user:
Please Do Not insert apostrophe (') inside the textbox. It does not seem very user-friendly is it?


grom u said u r good in HTML, well i suspect this problem came from html
text box.. any ideas?

Man, I really hope bargib can help me out if he is not busy..

Edited by - Lt Cmdr. Ajim on 6/17/2004 8:54:16 PM

Post Thu Jun 17, 2004 7:54 pm

I remember you as well, but we've never spoken. Unfortunately, I didn't do ASP. I studied HTML, bash, PHP, JS, and other programming languages, but no ASP. You could always email Eraser or Bargib. This site is written in ASP after all .

Edited by - esquilax on 6/17/2004 8:55:01 PM

Return to Off Topic