Make Query From 3 Input Text

i made database with these fields :
id ,name , address ,favo ,email , phone
now i did every thing ok i can add data readdata search by on of any field.
but i do not know how can i search with 3 fields .
i mean i need page include 3 input text one for name
2nd for email , and 3rd for phone . also botton for search
but i want when the user do not input any name or email and click on search botton popup messege come tell you must input all fileds then back to search page . if he input all and click search i want new page read data from database.

View Replies


ADVERTISEMENT

Form :: Make The Input Text Boxes Smaller Or Bigger

I am currently making a form in asp and when i make the text boxes they are all formatted to the same size, even if I use the width=*** to change the size? Is there another way to make the input text boxes smaller or bigger?

View Replies View Related

How To Make A Query Call Parametric

I'm trying to build a function that - providing the dbname and the query
name - show the results.

I don't know how to solve this problem...

when I try to insert the variable into this call

cnnSimple.x_qry rstSimple

where x_qry is the variable I get the error "Type mismatch: 'x_qry'"
obviously because the x_qry is a string...

I can't find how to cast the value in order to get the function work correctly. My target is to have a function like that: ShowTable(dbname,queryname)

View Replies View Related

How To Make A Rich Text Box?

I would like to know how can I make a rich text box as that is here at SitePointForums.com or the one at Yahoo.

View Replies View Related

Parsing Input Text

What I need to do is parse a string, then create variables for each word. Example:

- someone enters "cats and dogs" in the text field

- I need to end up with:
firstWord = "cats"
secondWord ="and"
thirdWord ="dogs"

Then I will use the variables firstWord, secondWord, thirdWord later in my app.

View Replies View Related

Strange Text Input

Have an ASP page on internet, where I let the user write his email address. Today I see that this text input field has got a yellow background instead of the normal white as the other input fields. The code is quite normal. Using IE 6.0.2900. It has not appeared before. Then I rebooted the computer,but got the same result.When I try another computer, also with XP pro and the same IE, the text input is white as it should.

View Replies View Related

Select Query According To User Input For A WebPage In C#.Net With SQL Server 2000

How to select query according to User Input for a WebPage in C#.Net with SQL Server 2000.I am trying to build a web page in C#.NET with SQL Server 2000 using Visual Web Developer 2005. I want to select and execute the query according to user input.

I have a form which has 2 textboxes which gets start date and end date from the user. Based on start/end date my 1st query runs. Now if user does not enter any start/end date I want to run another query which takes default dates from database(which is in varchar:ex. now()/now()-180) according to logged on user's permisstions.

How to select query ?

View Replies View Related

Split () Then Replace () Text Box Input

I have a form with an text box called keywords. I want to get the text typed in by the user from this box (which will pobably be built up of several words).

I have declared arrsplitkeywords to assign these words to. But first i have split the input from the text box where there is a space. See the line of code below:

arrsplitkeywords = Split(Request.Form("Keywords"),",")

I now need to replace this so that the words are split up to be split like "','" I have the following line of code to do this:

Replace(arrsplitkeywords,",", "','")

This doesn't appear to work, and on the replace line i get the following error:

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement

Any help please as to why this isn't working?

View Replies View Related

Error In ASP Input Text Statement

I want to capture the value of variable into a hidden input test field, using the following code.Code:

<input type="hidden" name="selectedby" size="20" value="<%'strNTUser'%>">

When i run the code the variable value is not captured in the field "selectedby". strNTUser is the variable.

View Replies View Related

Text Input Word Count ?

I am trying to build an asp page the displays 100 characters from text inputed into a text area. The page keeps breaking because it counts any HTML code the text might have. I would like to have it count the words instead and when I write out the words it includes any underlying html.

For example, here is a sentence: "The fox jumps over the lazy dog" and I could cut this sentence in half by counting out the first 18 character and only outputing those respectively. Everything would work just fine. But if the sentence is like this "The fox jumps <a href='http://www.microsoft.com' target='_blank'>over</a> the lazy dog." a simple letter count no longer works for me. If I printed out the first 18 characters then it will break my "href" tag and therefore would mess up the formatting of my page. Can someone point me to an article or component that will assist me in correcting this?

View Replies View Related

Size Of A Text Input Field

I want to create some text input fields which they should all have the same size regardless the browser version or type. Because my text input field looks different in size if I view them from a different computer. Is the following coding should solve the problem?

<input type="text" name="field" value="" size="30" style="width:300px;">

Is the best way to use CSS to control the size of a text input field?

View Replies View Related

Handling Text Input In Form

how do i allow the user to add in a value that has a ' in it (e.g int'l) apperantly if i do that there will be an error... how do i go about this?

View Replies View Related

Handling Text Input To Database

how do i allow the user to add in a value that has a ' in it (e.g int'l) in the form. apperantly if i do that there will be an error... how do i go about this?

View Replies View Related

ASP With Access Database (Input Text - Value Display)

I'm using Access Database with ASP. There is one particular thing that I
have issue with.

My purpose is for user to update their own profile. Their existing profile
information will be display in Edit Form format. The problem is if the field
has space, the second word will not display, when I display in input text
format.

E.g if My first name "User_FirstName" in my table has entry, let say "David
Johnson" as FirstName, when I execute following code and do a input text, it
will display "David" only. Code:

View Replies View Related

Change The Text Color In Input Box Depending On The Value Of It

I want to change the text color of the input box depending on the value entered by user.

View Replies View Related

Validate User Text Input Problem

This problem only occur when ppl using NetScape 7.2 I've tested it myself and it works in IE and it DOESN"T work in NetScape 7.2 Here is the code:

View Replies View Related

Stop Spam In The Text Input Field

I have a website with a Guessbook section. Lately I noticed someone copy and pasted a long http address to promote viagra.. I believe he simply copy and paste the whole link into the text input field and submit several times. It created multiple entries in my guessbook.

How can I prevent this? I was thinking if it is possible for me to write some code to disable people using the control-p to paste text in my text input field.. Can I really do that? What other options do I have?

View Replies View Related

JavaScript - Display Text, Depending On Input

I want to have a user input a value (1 through 10) in a form. Then click submit. and right under that have text appear depending on what they input. This is what I have, but it doesn't work. I'm not understanding the flow of the script getting called. Code:

View Replies View Related

Treat User Input As Text Only (allowing The Apostrophe)

Isn't there some line of code that I can write to tell ASP to treat everything between BLAH and /BLAH as text (including the apostrophe). So that users can type a name of "O'Malley" in a form and I can retrieve it and store it in my database.

View Replies View Related

Drop Down Box And Text Field, Sql Query

I have a page with a drop down box and a text field. The drop down box selects a column from a table in my database. txtField is the drop down box and txtSearch is the text field.

The form method is post and the results are passed to the next page which has the query for the database as shown below. Anyone any ideas why I get no results from the query? It works in queryanalyzer so I assume its my asp thats wrong? Code:

View Replies View Related

Altering A Text String For An Indexserver Query

I am trying to alter a text string to create a valid boolean query for
an index server search.

At the moment because the text string is created using combo boxes it
can have 2 or more 'AND's in succession.

Like This (strInput):
"Company AND Credit AND AND London AND AND Richmond Short Term AND AND
Intercompany AND Investment Bank AND Covertible AND AND "

what I want to do is change the above string to (strOutput2):

"Company AND Credit AND London AND Richmond AND Short Term AND
Intercompany AND Investment Bank AND Covertible"

I am trying to do it with the code below:

However this code produces problems as I loop through the various
search items.

It works fine in VB but fails when I try to port it to ASP. Code:

View Replies View Related

Query Db Using Session Object Or Text File

Need to query an access db usign the contents of a text file that has one entry in it, and id ie: drsmith

Here's what I have thus far (the db call is in an include file)

<%
Dim fso, read
set fso = createobject("scripting.filesystemobject")
set read = fso.opentextfile(server.mappath("settings.inc"))

SQL = "SELECT * FROM news WHERE Company_id = (??????)"
Set rs = Server.CreateObject("ADODB.RecordSet")
Set RS = Conn.Execute(SQL)
%>

View Replies View Related

ASP/Mysql Empty Text Field Query Error

I'm getting an error when I'm retreaving from a "text field" in the database and it has no data in it. I'm using MYSQL version 3.23.58-nt. I have the same script running a different system and I don't get this error. It justs output nothing and continues with the loop.

This has to be an ASP problem when retrieving data from the database. I've change the Field for Message to "varchar(252)" vice "text" in the database and stoped giving me error. But I still need to use the type "text" in the database since my "Message" will be longer then 252 caracter. 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

Need To Convert This Sql Query For Access To Identical Sql Query For Sql 2005..

My code retrieves a username and a password from a form. Then this information is compared to some usernames and passwords that are stored in a database. The important thing here is that the comparison must be case sensitive meaning that "passWord" is not the same thing as "password"

I have this code, working fine in access 2003

SQL = "SELECT * FROM users WHERE StrComp(username_column,'" & entered_username_in_form & "',0) = 0 AND StrComp(password_column,'" & entered_password_in_form & "',0) = 0"

but get the following error when I run it against my sql 2005 database.

[Microsoft][SQL Native Client][SQL Server]'StrComp' is not a recognized built-in function name.

I don't know the corresponding t-sql for the query.

View Replies View Related

Controlling Text In A Text Area Or Text

I have this problem in controlling a the text in a Text Area. How can I do
that for example the field size is 200, when it reaches 50 it automatically
goes to the next line. Bcoz im having problem when viewing it in my report,
it continuesly views in a strieght line and im having problem in printing.

View Replies View Related

Make A DLL

How can I make a ASP-file to a .DLL? The idea is to protect the source from others who use the same IIS. Can I make a ASP-file that calls a .DLL - file with all functionality, or how does it work?

View Replies View Related

Make A Form

Hi does anybody know if you can make a form
have two actions and how?

View Replies View Related

How To Make 1000000 Looks Like 1,000,000 ?

how to format the table in order to show 23,567,987 instead of 23567987 , I mean it's very hard to read when there are more than 4 digits.

View Replies View Related

Make Link

when you click on it to go to the off site the user name and password will be automaticly inserted to where the offsite is asking for the name and password.
My company deals with insurance companies and we would like to make it to where when our employees go to our intranet and click on a link to one of our carriers it will have the name and password in place for them. i heard its possible and old company did it but I am having so much trouble trying to figure this out.

View Replies View Related

How To Make OCX Talks To ASP

Its the first time I use ocx on my asp pages. Say I have an ocx which is a dropdown with multiple columns. Before its displayed, I call a method to populate the pulldown, so how do I make the script block talk to the html?

'script block

<%
dim myObject

set myObject=server.createObject("myObject.pulldown")
myObject.Populate(.....)

%>

'HTML block
<Html>
<OBJECT ID="MyObject1" CLASSID="CLSID:12345678-8AB4-4230-A65E-DA15A40F9900"></OBJECT>

View Replies View Related

Make Match

I want to know how to make a match for a text , for I'm wan't to search for this in the db . the search i made search only for the exact text user inserted so if the user misspelled the word the search will give him zero result. So i want to seach for any part of the word or if it is aword in aphrase.

View Replies View Related







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