Clean Input

Is there any way to clean the user input before saving to the database.I tried to use..

Function StripNonNum(strInput)
Dim regEx
Set regEx = New RegExp
regEx.Pattern ="^[w-.]{1,}@([da-zA-Z-]{1,}.){1,}[da-zA-Z-]{2,3}$"
regEx.IgnoreCase = True
regEx.Global = True
StripNonNum = regEx.Replace(strInput, "")
End Function

But It doesn't work when user cut&paste the information to screen.For eg.Cut&Paste from a CV which contains Bullet points is there any way to remove these bullet Points before data saving..

View Replies


ADVERTISEMENT

Clean Up URL

I would like to clean up my url's with a program like mod_rewrite in PHP. Is there anything out there that doesn't have to be installed to the server to do this job?

View Replies View Related

Clean ASP Page

I have always been in a habit of putting the process page separate from the original data input page. For Example my login.asp page will have the userid and password fields and then login_proc.asp page will process this information resulting in login/error message.

These days i am working with a designer company to upgrade our company web site and they are forcing me to put information and process information, 2 steps to be on the same page. The content will be conditional.

Now my question is, out of these 2 which is better way. The 2nd one is ok if the input page is really simple and same way processing of this information is simple too. But what if the input page is already receiving some parameters from other pages, and due to this, input information is already getting displayed conditionally.

View Replies View Related

Clean Up The Script

i am trying to clean up the messy .asp script that came with some new e-commerce software (Everest), as it gives far too much html. Take a look here.

I am going to take the java script out and reference it like this:

<script src="/superstore/productlist.js"></script>
<script src="/superstore/buy.js"></script>
(nicked from Tesco's website.. Hopefully it will work)

Can anyone suject how I get rid of all that messy creation of variables or Message strings?

WARNING! I am approaching this from a HTML point of view. Can do html in notepad and am working from the generated html files backwords to find out what the ASP files are, so please explain it like you are talking to a four year old.

View Replies View Related

Creating Clean URLs

I need to convert the Query Strings into Clean URLs, Found some articles on
PHP and Apache server.. How do we it them with ASP ??

View Replies View Related

Tips On Writing Clean

My site keeps going down and I don't know why. I've been looking for tips on cleaning up my ASP code but couldn't find any. Do any of you guys/girls have any tips on cleaning the code? What to do and what not to do?

View Replies View Related

Clean Word HTML

I have a 'textarea' javascript component which allows users to edit text in an HTML form's text area with some WYSIWYG features (such as emboldening, insertion of lists etc). However, this doesn't deal very well at all with text copied and pasted from Word.

Is there a way (a VBScript function maybe) which can strip out Word HTML upon submitting the form, or alternatively a good free text-area replacement tool with this built-in?

View Replies View Related

Tools To Clean Up Asp Code

i was wondering if there are any tools or programs out there that
can clean up your asp code like realign and make it more readable and
if there is can i have some recognitions please.

View Replies View Related

Best Timing For Clean The Session Variables

I usually clean the session when the result page is presented to the user.
At this time, say an email confirmation was sent to the user and a pdf file
they can becdownloaded from the result page.

But if the user click the refresh or back button etc. for some reasons, they
pdf file is not available since it created on the fly when the request was
submitted.

So I am thinking about pull pdf file from database, but don't want the
database being hitted everytime the refresh button was clicked or the
requested is resubmitted.

View Replies View Related

Creating Clean, Retrievable XML Output

I would like to get a roadmap on learning from you folks. I need to learn
how to take an SQL view of data that I have and allow it's data to be
retrieved as an XML document in IIS.

I know how to create queries and views. I use Data Transformation Services
frequently (there isn't an XML document type in the OUTPUT options that I
can see) and, I actually get the concept of XML AUTO (for those who do not
know, this does a quick and dirty formatting of data in XML hierarchy), but
yet I do not know how to take these XML results and write them to a file,
allow it to retrieved (ONLY retrieved, not write back) from IIS as an XML
document type. Code:

View Replies View Related

Create Dynamic Input Names Or Input Fields In Asp

I have a little code to add multiple items to a shopping cart based
page. This code works perfect, but it adds all of the info to the
same input fields every time it loops. I need it to change the input
names each time it loops. Here is the code:

View Replies View Related

How Can I Change One Line Input Field Into Larger Input Field

I have being working with making an edit field over the past few days. The edit function is now working fine. The edit fields that i have are for id, subject, notes, timedate.

All of the edit screens are one line text screens. What I want to do now is increase the size of the notes box to a larger textarea type box to make it easier to edit notes. The notes field in the db is a textarea field. Code:

View Replies View Related

Input Box

I have an input box that sends data over to the next page. This
input box was in a loop, there creating data looking like this: 2, 0,
0, 3, 0, 4, 0, 22, 0, 0, 0

How do i break the data up in such a way that i can populate it into my
db while running through a recordset?

View Replies View Related

Input Tag In MAC

I have a problem with :

<input maxlength="10" name= "DateRep" type="text" style="width:115" onchange="UpdateCentralRep();" value=<%=Date()+1%>>

when its run in a MAC machine, it reload de whole page, instaed call UpdateCentralRep.
It works ok in PC!!!

View Replies View Related

Asp Input

i create a dynamic table to modify user/account for administrative management.
I have modify & delete function to be performed.

The idea is that when the admin click the Delete link, he can delete a particular account/user. is it possible to pass variable of buff value to recID??

because when i see the result of request.querystring("recID"), i does not pass the mumerical value sound pretty simple but i can't get it. Code:

View Replies View Related

Input Image Box

when I use:

<input type=button id=Test>

the following code works

myform.Test.disabled = true

When I change the input box to type image none of the properties are available. I get the message "object doesn't support this property or method"

Can anyone tell me how to fix this.

View Replies View Related

ASP And Input Parsing

I am looking for something similar to "preg_match" and "preg_match_all" in PHP.

I have searched the forum with no luck. I hope you are able to give me some pointers

Basically I want to match some text from a form and loaded it into new variables making use of regular expressions. the text comes form a textarea input type. Code:

View Replies View Related

Using An Input To Call A Sub R.

I have a bummer here. I have 3 sub R. that I need to call from a input button. I set up the following line, but the script just calls them with out having the button pressed. OOOO! Any ideas?

<form method="submit" name="nreg" onsubmit="(this)" action="call readitme, call saveitme, call reduce" >

I have also used method="POST" same darn thing, script just runs the sub R. with out being pushed or cliked. UUUGGG

View Replies View Related

File Input

when using a file input it only returns the filename

is there any way of returning the full path and file name?

View Replies View Related

Html Input Tag

Code:
<input type="radio" name="dewey_loc" value="dewey" onClick="toggledewey()" checked>Dewey
Can't seem to work out how to call an ASP/VBSCRIPT function from within html, is this able to be done? Can call JS without issue, but need to change a Session variable when this radio button is clicked.

View Replies View Related

INPUT Tags

I have found that places double quotes ' "text" ' around text inside (INPUT) tags results in everything after the initial quote, '"' gets truncated.
I'm passing the form information to another form to allow the user to look over and validate what they're submitting, then they will click the submit
button to send it all along.
I'm finding that in the validation form, the quoted text inside the (INPUT) tag gets truncated. However, the quoted text inside a TEXTAREA tag does not.

View Replies View Related

User Input

I'm using the following code and if someone enters something in the "instructions" field with characters -"', - it causes the SQL statement to change using those characters.

Dim strSQLadd
strSQLadd = "INSERT INTO orders" &_
"(form_number, orig_number, order_loannum, order_date, order_time, order_address, order_city, order_zip," &_
"order_contact, order_lockbox, order_agent, order_homephone, order_workphone, order_cellphone," &_
"order_legal, order_instructions, order_deliver, order_pay, order_altmail, order_appraiser) " &_
"VALUES (" & FormNum & "," & OrigNum & ",'" & CaseNum & "','" & OrderDate & "','" & OrderTime & "','" & pave & "','" & City & "','" &_
Zip & "','" & Owner & "','" & LockBox & "','" & Agents & "','" & BorHmP & "','" & BorWrkP & "','" &_
BorCellP & "','" & Legal & "','" & Instruct & "','" & DeliverType & "','" & Payment & "','" & AltMailType & "','" & AppName &"');"
objconn.Execute (strSQLadd)

View Replies View Related

Input Automation

i have a software application and i have to import around 250 users data into the app.
I want to automate this step,it the most common info
like FN,LN,e-mail etc.
The app runs on IIS and uses ASP. I am looking for a GUI input Automation tool which will have scripting capability to take input from a text file and fill the user input fields "automagically".can testing tools like winrunner do this for me?

View Replies View Related

Input Textfield

how to input textfield in popup window to search from a database and generate the report in another page?

View Replies View Related

Input Boxes

I am in the process of writing a website which has an access database
and uses asp to access it. Part of the site is a search facility. I
have heard that it is possible for hackers to gain access to the
database by entering SQL in to the search box. First of all is this
possible? Secondly if it is possible, what sort of syntax should i be
checking for on the text entered in to the search field

View Replies View Related

XML To PrePopulate An Input Value

I have an ASP page that has a Form & Inputs that are related to an XML file. I would like to prepopulate the value of the Input with the corresponding field from the XML file.

View Replies View Related

Hidden Input

I have a simple problem :

When I try to pass a variable via an hidden input and it contain a word with a space (ex :The Wall), only the first part is sent(ex: The).

<INPUT TYPE=HIDDEN NAME="Charge" VALUE=<%=Charge%>

View Replies View Related

Limit The Input

I limit the quantity of characters in an input box. I need to limit the input to 10 for example.

View Replies View Related

Input Mask And ASP

i let the user go and submit his phone number in a particular page. on the other side on access i adjusted my input mask of that particular field to the following set (999) 000-0000;0;-
or (&&&) &&&-&&&&;&;- or (@@@) @@@-@@@@;@;-

when i open the database i see the phone numbers are stored in the fine format which i wanted, however when i try to retrieve the data using the browser, i just gets me the phone number like 29384838283 without any brackets or spaces.

View Replies View Related

Form Input

How can I create a query based on the form input. I want to have a pulldown menu (list of states). The user can select the state, lets say VA and click on "go" button. I want the page to return results that has state=VA. So how do I create that statement and send to aspx ?

View Replies View Related

2 RSs Display In The Input Box

I've 2 RS and would like them to apprear on the input box. What did is :
phonenumber= ((RS("Acode") & "-" & (RS("phone")) Code:

<input type="text" name="phonenumber" ID="Text1" size="20" value="<%=phonenumber%>">

for some reason, it just displays only RS("Acode") , NOT the whole thing. Am I doing right?

View Replies View Related

Disable An Input Box

I'm using an input box in a form

(<INPUT TYPE="SUBMIT" NAME="btnLocation" CLASS="btnLocation" value="<%=btnString%>">).

Is there a way to put this button in a disabled state, where it can't be clicked? I've tried adding an "enabled" property, but that doesn't work. I've even tried "visibility" property, but the input box doesn't seem to support that either.

View Replies View Related

Disabled Input

i was wondering if i could enable/disable input according to the user, e.g.
enable input2 if input1 is enable, else it's disabled. Also, if input1 is
deleted then input2 is disabled.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved