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


ADVERTISEMENT

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

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

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 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

Submit Button Versus Regular Button

I want to understand the difference between submit button and regular button: <input type="submit"> and <input type="button">. My understanding is that submit button will send the entire HTML form to the web server, but regular button won't.

I have a problem that needs to pass HTML elements data back and forth in several ASP pages. I am using regular button to do that. But what's the approaches?

View Replies View Related

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

Button

i wonder how to execute vbscript when user presses image .is it possible ... because i don't like the ordinary. Code:

<INPUT TYPE="SUBMIT" VALUE="Submit Information">

View Replies View Related

About Button

<input type=button class="btn" name=edit value="Edit" onclick="self.location='admin_category_subsub.asp?c=<%=trim(server.urlencode(rs("cat_name")))%>&c_id=<%=rs("subsub_cat_id")%>'">

actually this is an example of a button called "Edit",however i am not sure of something.
what does this c=<%=trim(server.urlencode(rs("cat_name")))%>&c_id=<%=rs("subsub_cat_id")%>'"> mean??

and the "cat_name" and "subsub_cat_id" is it from the database table?

View Replies View Related

Where's The Off Button

i has installed IIS on Win2k Pro to test some horrible .asp stuff. I, er, he also has phptriad installed and rather like Apache as his localhost server from time to time. How can he switch IIS off?

View Replies View Related

ASP Select All Button

I have a list box that populates from db, and I would like to have a button that selects all items with on click.

View Replies View Related

Submit Button

I have a submit button - I would like it to submit and then I would go to the next page when the submit button is pressed.

View Replies View Related

Specify Default Button

I want to make it so that when the user is looking at a rendered ASP page
and they hit the ENTER key, one of the buttons on the form gets "clicked".
In other words I want for the user to not have to click on the button, and
just hit ENTER instead. How do I specify the button?

View Replies View Related

Vb 6 Option Button

I am trying to get a font of a label to change to times new roman when an option button is clicked, i have tried this:

Private Sub optHigh_Click()
lblHeading.FontName=Times New Roman

End Sub

This is wrong but i cant work out how to get the font to change,

View Replies View Related

Moving Button

Does anyone know how to code a button that when hovered over moves. Then maybe on the 3rd roll over it will not move and actually allow the user to select it?????

View Replies View Related

Command Button

<INPUT TYPE="SUBMIT" VALUE="New Message" Style="Width:100px">

How can I change the font type and font size of value="New Message"?
Except create a customized button in photoshop as an image file.

View Replies View Related

Submit Button

i am having problem with my submit function. When i refresh my page or select an option from the drop down list it is submiting the values into the database where it should submit when i click the submit values. Another problem is tat wad ever values i submit it is appearing with comma at the beginning of the value in the database.

View Replies View Related

Browse Button

I'm using Frontpage to Design the page and .NET to edit the code behind it.
Is there an easy way, like a button, or some simple syntax to add a button to "browse PC" where when the user clicks on the button it opens up that standard HardDrive browse box and you can select a file?
And question 2, can you do directory reads where you open a directory and then just keep reading through each file in the directory till you get to the end?

View Replies View Related

Submit Button

I have a question about using a image as a submit button. Basically I have:

<INPUT="image" SRC="c:whateverwhateverutton.jpg" NAME="Login">

Now I have two different buttons in one form. I trying to figure out how to get the page to know what button was pushed, and then do a set of actions. Such as:

If button1 is pushed then
blah
end if
if button2 is pushed then
blah
end if

Thats the basic pseudo code for what Im trying to do. Keep in mind this is a image button.

View Replies View Related

Image Button

I have been using an image instead of a button to submit a form, this works fine within firefox, however when i come to test it in IE6 it doesnt submit the form... If i add a proper button then it works fine, however in keeping with the look and feel of the site it is important that i use an image.
the code i have is as follows:

Code:
<input type="image" name="Submit" value="Submit" src="images/proceed.gif" alt="Proceed to the next step" width="221" height="29" border="0" />
The form posts back to the same page to do some validation routines, but when it is not an image then as i have said in IE it doesnt work

View Replies View Related

Radio Button

I have two radio button and one input filed on my form. What I want a do when user change the selection then I want a display the today date into enterdate input filed. Then later I can add this date into database.
How can I do that.

input type="radio" name="GType" value="Pending" <%=iif(GApproval="Pending","checked","")%>[PHPNET][/PHPNET]>Pending

<input type="radio" name="GType" value="Approve" <%=iif(GApproval ="Approve","checked","")%>>Approve

<input type=text name=enterdate value="” maxlength=5 size=3>

View Replies View Related







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