Insert Passed Parameter To Table

I would like to clean up my mailing list by changing the URL I use at the moment which is in the format

www.mysite.com/view_pic.asp?pic_number=123

To be

http://www.mysite.com/view_pic.asp?p...il=bob@bob.com

it would then insert the email into a table, collect these for a while and only see these as active members.Any ideas how to do this, I've tried a few things but no luck.

View Replies


ADVERTISEMENT

Parameter Not Passed From For Loop To While Loop

I'm trying to pass a parameter from a for loop to the nested while loop
but only the first counter is passed. Here is the code:

View Replies View Related

Insert Data Into Table

I have created an empty table(.mdb) with 2 columns
Order(AutoNumber) and BuildingID(text)

and i use :

cn.execute "Insert into [Temp](BuildingID) values ("&Buildingid&") "
to insert buildingID into the table

however all buildingid start with 0 with be omitted,
eg. buildingid = "00003333" after insert into the table become "3333"

i have checked that response.write len(buildingid) = 8

What is the problems?

View Replies View Related

Using A Form To Insert Into A Table

I am trying to make a page post.asp with a form that simply submits one text value and two hidden values into a table. I already have the function that takes the 3 parameters, modifies them and successfully inserts them into the table:

I have included this function in this post.asp page ...

View Replies View Related

Update/Insert On MSSQL Table Using ASP Forms

I have a problem that it's bothering me for some time now and i will need a lot of help from you. I don't know how easy or difficult it is to be done but i would appreciate any help.

I have an mssql 2000 db with table "table1". Attributes for "table1" are:

ID (Primary Key)
field1
field2
field3
field4
field5
field6
field7

I'm trying through DreamWeaver MX to create a form through ASP and Text Fields, so that i can update "table1" through the form and also on another page to show the results of my table.

I have created a form which will be accepting 25 rows, each row having field1, field2, .., field7.

I cannot seem to get it to update "table1".

Any ideas how this can be done?

View Replies View Related

Insert Multiple Records Into The One Table At The Same Time

Does anyone know how to insert multiple records in the same table at the same time. This is what I have. I have a form with 6 fields and they are name prod1 through to prod 6. The table is called related products.

Basically this table is related to the main table called prod_parent. tried looking on google and couldn't find anything.

View Replies View Related

Converting String To Datetime Insert Into Sql Table

I am having terrible time in converting a string to a datetime field in my asp page. I am keep on getting error on the following stateement. What would be the correct syntax on converting string to datetime for inserting into a sql table?? I did write the add_str out on the browser, everything looks correct...

Error message:

[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting datetime from character string. Code:

View Replies View Related

Problem With Handling Table Insert From ASP Page

I am gathering the input values to a form using Request.form method from the processing page. After all the data is captured, I am building sql statement out of it.

Using a response.write statement, I am generating the output of the sql statement which I can ran against the table to insert the row.

However, when I am trying to programmatically use the sql statement for the insert, I am having the following error:

View Replies View Related

Cannot Insert Explicit Value For Identity Column In Table 'cwm_Report_Request_Form'

I am trying to retrieve a record identity from a SQL Server auto-incremented field on insert statement.

Here is the error I am getting can anyone please help me

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert explicit value for identity column in table 'cwm_Report_Request_Form' when IDENTITY_INSERT is set to OFF.

/cwm/Admin/reportrequest.asp, line 66

here is my code:

View Replies View Related

Passed A Variable

when guarding against sql injection attack from modified form or
querystring variables is it enough to strip out just apostrophes...if the
variable USERNAME is the name of a text box passed to a script is the below
always safe...

q1="select * from TABLENAME where username='" &
trim(replace(request("USERNAME"),"'","''")) & "'"

View Replies View Related

Button Passed To URL

I've never seen this before. I am new to querystrings, as just using hidden
fields and the POST method has been more than adequate for me until
recently. But I started using the GET method, and I noticed that when I
clicked the submit button, it gave me this for a URL:

http://localhost/DisplayTickets.ASP...nsearchTSE.y=11

The thing is, selectTSE and Status are the two <SELECT> boxes, so I
understand them being there. But why is is telling me the x and y
coordinates of where I clicked the button to submit the form?
I should add that the submit button is an image, not a regular button.
This doesn't hurt anything, just wondering why it's there. And maybe it will
hurt something later on; I don't know enough to say.

View Replies View Related

Cookies Passed

can cookies be passed from a pop up "secure folder log in" window, provided by my hosting company? As I would like to display a welcome message with their name when they log in.

View Replies View Related

Zero's Omitted From Passed Value

when i try passing a numeric value as a string("0004") using asp to a stored procedure, the value is stored as 4 and not as 0004 in the table. In the table and stored procedure the value type is nvarchar.

View Replies View Related

SQL Passed Variable

I have a page that passes a variable in to an sql query

It parses the string (a date) for month and year.

It works when i use the date() function Code:

View Replies View Related

Querystring Problem The Not Being Passed

I'm trying to pass paramter values to another .aspx page via a querystring. The record in the db table looks something like this lahlahlah. The value that gets passed looks like this lahblahblah. So basically the is not getting passed.

Here's what my querystring looks like: Code:

View Replies View Related

How Do I Use A Passed Variable In A Query?

i need to add a variable brought into the
script like: script.asp?variable=var

and i need to make it for use in

var1 = request.querystring("var")
mySQL = "SELECT * FROM members WHERE nick = 'VAR1'"

can anyone tell me how to do this?

View Replies View Related

Record Values Are Being Passed

When i submit this form all the record values are being passed to the next asp page. But i want only those records which the user has changed in this page.

View Replies View Related

XML STRING Passed To Stored Proc

I am using SQL SERVER 2005 and ASP.

Would anyone be kind enough to give me a solution to the problem below please?

If for example in the stored procedure looks like this:

-- Initialize the SQL Server XML stored procedures
EXEC sp_xml_preparedocument @xmlDoc OUTPUT, @xmlString

Insert into @TableBook
SELECT * FROM OPENXML (@xmlDoc, 'books/book') WITH
(
bookNameVARCHAR(100) 'name',
authorVARCHAR(100) 'author'
)

The question is supposing there is a node called 'Surname' but I am not adding 'Surname' to 'Author'. If I want to check 'Surname' value DOES exists and I want to replace it with 'Author' or if 'Surname' does not exist, just use 'Author' node instead.

I am not sure how you can use IF statement to check a node and put the value into SET @surname and then put something like author VARCHAR(100) '@surname' OR author VARCHAR(100) '@Author'. Just like switching it around.

View Replies View Related

Working Out Time Passed Between Two Dates

I am trying to work out the length of time that a page was opened till it reached another page, I amusing the script below Code:

View Replies View Related

No Session Data Being Passed Back To Clients

does anyone know why my session number doesnt stay the same when i pressed refresh?

it works on w2k, but not on w2k server

my programmer thinks that the IIS is not passing the session back to the client. is there a way to check or any other alternative for sessions?

View Replies View Related

Update Database Using Variables Passed Through Browser

I am creatiung a track record website which displays a list of branches and how many people are available at each individual time slot.

I thought the best way to update would be to create a link which passed two variables, the branch and what time slot. This would then be retrieved int he book.asp page which then would knock one of the current count. I came up with the below page: Code:

View Replies View Related

Creating VBScript Command Dynamically Using ASP Passed Value

my ASP code creates a form and an array of chekbox with this statement response.write "<input type='checkbox' name='chkProduct" & Cstr(counter) & "' value='delete'>" all goes well and i also have a button that points to a VBScript function passing one parameter the counter start value so i can loop throught the checkboxs on the client side and determine if checked or not.

Ok i can display my command "document.frmProductCart.chkProduct & (Cstr(counter)) & .checked" as a string in alert but cannot make it as a command like it should be, anyone got any pointers ?

View Replies View Related

Creating A Database Object Using Passed Parameters

I have created a database connection function which I use to open my database connection and recordset and another to close it. Easy stuff I know. The problem is this.

I want to be able to create database conenctions and recordsets specifically when I call the function. For example Code:

View Replies View Related

How To Form A Method To Change HTML TD Attributes When Passed Element ID?

I have a ton of TD attributes that have to be changed based on the
data in the DB. All TD elements are ID and runat=server.

Changing the attributes of a SINGLE TD is simple:

<td id=thisTD runat=server>

thisTD.Attributes.Clear();
thisTD.Attributes.Add("Class",reader["thisTD_Class"].toString());

Now, say we have 100 TD elements with IDs TD_1 to TD_100

I have not been able to find a way to (essentially) say:

for(int i=0;i<100;i++){
"TD_"+i.Attributes.Clear();
"TD_"+i.Attributes.Add("Class",reader["TDClass"+i].toString());
}

in J-Script, I could do it by Eval() or about eight ways through the
DOM. It seems crazy to me that if I can access the Attributes of a
specific element directly by ID (thisTD.Attributes), I couldn't also
access it by reference.

But I have been able to find NOTHING to indicate how this may be done.
Obviously, my problem is not limited to a single attribute, or else I
would have just typed them all out by now. Trouble is, there is a lot
of logic that must be applied to the data before setting the
attribute. Without being able to iterate or loop by reference, I will
be typing for ages just to change some freaking classes.

View Replies View Related

Null Parameters Passed From XMLHTTP In Javascript To C# Webservice With SOAP

I have encountered some strange behaviour when using the XMLHTTP Request object in Javascript to return xml from a C# Webservice Method. I create a SOAP envelope and send it off to the Webservice, which I have debug points in, which when hit I can see that all the parameters are coming thru as null....

View Replies View Related

How To Prevent Duplicate Values When Using BULK INSERT To Insert CSV To SQL Server?

How to prevent duplicate values when using BULK INSERT to insert CSV to SQL Server? Code:

View Replies View Related

ASP Parameter

How can i pass parameter in ASP with hide
ex : default.asp?id=9
i wanna be : default.asp but the id still follow the page

View Replies View Related

Get Parameter In Url

I would like to get parameter of ASP script in URL. example : /localhost/example.asp?parameter1 . How can i to get this parameter ?

View Replies View Related

Add Parameter

I am trying to pass three parameters using this code in an asp page to an
xsl page. I keep getting the following error:

Microsoft VBScript runtime error '800a01a8'
Object required: ''

/account.asp, line 114

Any ideas what I am missing? Code:

View Replies View Related

QueryString Parameter

A MS-Access database table has 2 columns - UserID (unique) of number data type & UserName (text) along with some other columns.When users come to a particular page, say, AllUsers.asp, all the UserNames are displayed to him as hyperlinks. Based on the UserName
clicked by a user, the next page (to which the user will be taken to when he clicks any of the UserNames) will display more information about that particular UserName (which the user had clicked).Assume that the page where more info is displayed is named UserInfo.asp.
(Note that the info will also be retrieved from the DB table).

UserInfo.asp will also display the UserName the user had just clciked in AllUsers.asp.
Now for UserInfo.asp to retrieve data about the UserName the user has just clicked, I can make the links in AllUsers.asp pass the UserID as well as the UserName as a querystring value. Now whcih one will be more efficient - sending the UserID as the querystrinng value or sending the UserName as the querystring value?

View Replies View Related

Userdocument With Parameter

I can call a user document with a paramer in the IE Address bar eg:
C:Program FilesMicrosoft Visual StudioVB98docMyDocument.vbd?Parameter

I can call the Userdocument using these lines of code in ASP:

Sub Window_OnLoad
Navigate "docMyDocument.VBD"
End Sub

I have beed trying to pass it a parameter with the following syntax :
Navigate "docMyDocument.VBD?Parameter"

This does not seem to work. How do I call the userdocument in ASP with a parameter ?

View Replies View Related

Pass Parameter

I am using Crystal v7. Main report and subreport are both based on the same stored procedure. How do I pass parameters to display the report and subreport in the Crystal viewer. I can display regular (non-sub) reports fine.

View Replies View Related

Returning Parameter

I got a problem returning parameter. I am storing date using datepicker to choose my date. But when i want to delete it from the table because date is one of the primary key. it has problem when i retrieved it because it is recognized as datetime but when it display it's a text. i need 2 convert from text to date. how would declare my parameter then?

View Replies View Related







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