Post Variable
I have a VB application sending data via post to an ASP page.
The application sends two variable: id, txt
If txt has the & sign in its string, it cause trouble. E.g.:
id = 1
txt = "Hello & more"
If I take a look into Request.Form() array in asp page, it shows the
following:
id = 1
txt = "Hello "
more = ""
View Replies
ADVERTISEMENT
I am posting a form variable to an ASP script, but when the asp script receives the variable, I don't want it to open a new web page or open in the same window. I also can't have the script on the same page and refresh the page.
I use javascript to submit the form with the hidden field, and I want the variable to be processed by the asp script in the background on the server and return nothing. So essentially, i want the script to run transparently. How can I do this with asp? We run a classic environment.
I am doing this because the script is a tracking script, and it's disruptive for the user to see any trace of it. I want them to continue surfing as normal.
View Replies
View Related
Can someone tell me the maximum character length of a variable passed to an ASP page via a POST form (i.e. not through the querystring)? I read somewhere that said it was 1024 characters but that can't be right.
View Replies
View Related
I am dumb, ya'll are smart. Help. I have a session variable I am using for login. I want to have a link on the page to logout which will re-post the page. I put in the following code:
<a href="../nav/nav.asp" target="NavFrame" onClick="<%session.Abandon()%>">Logout</a>
This would bring the user back to the same page, but would limit the options to read only user capabilities.
This works fine except for one thing. The session is abondaned any time the page is submitted. There are several other items on the page that call submit() that need to be used and the page not end the session. Any explanation why this is ending the session and how to avoid it?
View Replies
View Related
sending a variable in this way: temp.asp?num= <% = Var %> creates an error , although i can see in the url that the value is added (e.g temp.asp?num=3) is it because the method is post? what should i do so the variable will come throgh with no error!?
View Replies
View Related
I am passing a value to a form through the URL as follows:
<A href="http://www.xxxxxx.com/orderone.asp?text="radius">http://www.xxxxxx.com/orderone.asp?text="radius"
On the orderone.asp page, I am reading the value into a text box as follows:
<input name="Template" type="text" id="Template" size="25" maxlength="255" class="body" value=<% = request.querystring("Text") %>
so far it works fine. It shows the value in the text box on the page. I am trying to post this page with all the form fields to a new page that emails all the variables that are on this page. The form tag looks like
<form action="Orderform3.asp" method="post" name="order">
In orderform3.asp, i am requesting the values for all the form fields as follows before emailing all the fields to myself:
strBody = strBody & Request.Form("Account_Name") 'strbody is the variable that adds all the form fields to the body of the email
strBody = strBody & vbCrLf
strBody = strBody & Request.Form("Contact_Name")
strBody = strBody & vbCrLf
strBody = strBody & Request.Form("Template")
Here is the problem...I am getting the email with the values filled in except for "Template" and I cannot figure out why. Is there something that I am doing wrong? i have to mention that there is no DB behind this site...it is just a static web site with an email script in it.
View Replies
View Related
Is there a way to 'force' a submit on a form with out actually allowing the
user to press a button ? For example...
step1: A from is filled out by a user, then they click the submit button.
step2: The form is 'post'ed to an ASP page which writes the values to a
database. So far No problems. But..
step3: Now I want to 'post' these values again to another page without any
user interaction.
My ideas were:
1) I know you can get the form values from Request.Form("myVar"), so I
thought of making a 'dummy' form and setting the 'values' of the form
variables to these Request.Form("myVar") valiables, but I don't know how to
'submit' them to another page again.
2) Is there some type of 'submit' command in ASP?
View Replies
View Related
i have a series of .asp pages that i am dividing into model, view, control logic. my view collects a whole bunch of data and posts it to the controller. im wondering if there is a way to somehow "re-post" this same data to my model page.
in short, is .asp capable of taking data posted to a page and re-post that same data to another page?
View Replies
View Related
I'm turning my application into a "DLL". Everything worked fine untill I try to do a "While" in my asp code. Then I recieve an error like this:
"Object variable or With block variable not set"
My vb code look like this.....
View Replies
View Related
is there any way of passing a javascript variable over to a asp variable so
i can write it to my database.
View Replies
View Related
How do I convert an ASP variable to a Javascript variable?
View Replies
View Related
sql = "SELECT * FROM & console &'news'"
I got that right now but i want the variable, console to be placed along with news so when it selects from the db it selects from gcnnews or whatever variable it's on. How do I do that?
View Replies
View Related
im trying to subtart one quantity from another then stick the answer in to an update statment, but all i get is an error in syntax message
variable math bit=
qty=request.form("oqty")-Request.form("qty")
sql =
sSQL="Update spares SET spares.location='"&request("location")&_
"',spares.machine='"&request("machine")&_
"',spares.part_desc='"&request("part_desc")&_
"',spares.part_number='"&request("part_number")&_
"',spares.qty='(" & qty & ") "&_
"',spares.min_qty='"&request("min_qty")&_
"',spares.updated_by='"&session("name")&"' WHERE(spares.id)=" & form_id
View Replies
View Related
I need to assign a value to a variable, but this variable name is dependant upon another variable!! I am including the code below so you can see it, cos if not I am sure you are thinking whattt?? Code:
View Replies
View Related
I've an html form with some fields, I have to normally post them clicking a
submit button to an asp page; this page have to programmatically repost
these fields and other constants to another page
I do this beacuse I don't want the web user to see the costants which are
the authentication values (username password)
View Replies
View Related
I couldn't get my page to POST to my server I thought
because I had run IIS lockdown and other hardening tools.
Now I've rebuilt the whole server from scratch and have
yet to disable anything. I still can't POST. GET has been
working fine all along. Is there anything that needs to
be done beyond setting the forms method to POST and using
Request.Form(whatever), instead of Request.QueryString
(whatever)? Is there something that I need to put in the
ASP or client page header or something? I must be missing
something. Maybe IIS 5 needs to be set up to use POST or
something.
View Replies
View Related
It's really simple question. How can I insert Statement/line with " ' ".. for exmaple I get error if I enter "Let's play".
I am trying to instert that line into table.
View Replies
View Related
I'm trying to make a simple ASP page post to a URL on a seperate web site, and then get the returned HTML into a string which on service side script I can then parse. Is there any object built into IIS or Microsoft I could use Server.CreateObject with to make this possible?
View Replies
View Related
I have a form that get submitted. On the page that dose the db work I need a loop that will run through each record set and updated it to the db. I was thinking about writing a do loop that will increment scount = scount + 1 . the problem is that I have no idea how to tell if i am at the end of my request.form("id").
i can response my request.form("id") and i see all the id's listed acress the page.. just need to loop through then one at a time.
View Replies
View Related
Well I did a little research of my own and found that get shouldn't be used when a form is causing some big changes into the DB such as deleting, updating etc.
Until now I've always used GET for everything. So should I use Post for updating, deleting editing etc and GET only for retrival.
View Replies
View Related
I am trying to re-write a post method search page so that it will accept variables using the get method. For those of you asking what the heck i'm talking about simply this. I need the ability to send variables through the url to the search page of my site.
This page would be a copy, i.e. Searchprods.asp-original that uses post method, Searchprods2.asp using get method. I am almost completely lost as I don't use asp, or even vbscript often.
View Replies
View Related
i got a lot of text inputs inside table(60~)and i want to update them. till now i used to do it with posting to another page the variables and on the other page i will take all the posted values and update it inside mysql.
but suppose i got a long list of text inputs. is there to update only the changed fields? if i got 60 text inputs, and changed only 4. i realy think this is not logical to standon the other page and check all 60 posted variables one by one if they empty or not andupdate those which the user changed, or to skip the checking part and to update all 60 at once.
View Replies
View Related
in past, i learnt from the book to post data by
action=post & input type=text
now the post data is not from user input
it is from a table which is generated by asp script
i wish to generate a table with a check box at each row.
when i select the check boxs, then the rows of the table will be posted to
another html page
any hints to me for doing this?
Secondly, how about if rows of the table will be posted to a input box on
another html page grateful if you could give me some hints.
View Replies
View Related
I'm posting a form from a php page to a page that's asp. I want the url parameters sent to the asp page to be the defaults of the form. I've never used asp so I'm not sure how to do this.For example:
www.test.com/test.asp?clientid=123
Text field in asp/javascript form called "client" should now default to "123".
In php I would have put this as the default value for the "client" field in the form: <?php $_GET['clientid']; ?>
What would be the equivalent way of doing it for asp?
View Replies
View Related
what's wrong with the line below
<A HREF="http://www.nyc-discusfanatics.com/face/dragonball/forum/Breeding/BreedingDisplayPost.asp?tid=<%objRS("ThreadID")%>#<%objRS3("ThreadID")%>"> ></A>
I got an error:
Wrong number of arguments or invalid property assigment.
View Replies
View Related
Now this is a weird one. I'm having a problem with a system in development. When I post data from a form in IE 5.01 it works fine, but in IE 5.5 it refuses to post the data to the server and in IE 6 it's scatty -- works sometimes but not others. Anyone seen this before?
Edit:
By the way -- this is normal VBS/ASP running on IIS 5 on an NT server
View Replies
View Related
i have an asp page with a form that posts to itself. (the action of the form
is the same page the form is on). i validate input and dont accept it if
there is something wrong with it. problem is that when the form is
submitted, and i display the error message, the data the user typed in the
box is gone. i work around this by setting a session variable as soon as the
user hits submit and store the data the user typed. then for the default
value of the textbox i have <%= Session("var") %and that leaves the users
data in the box for them to edit. is there a better way i could do this?
View Replies
View Related
Is there a way I can POST data from a ASP page to another page? I am not trying to POST data from a form to another page, but would like to create the POST headers from different variables, and then send it to another page
View Replies
View Related
I need to some how do the following and if anyone can help me or point me in the right direction I would appreciate it very much.
I have a form that the user would fill out. When he/she clicks submit it goes into another page that reviews the information that the user typed in the previous form. If all of the information is good for the user there's another button in that page that they would have to click.
This is what I want to happen after they click on this button. I want to record the data in a SQL database, which I know how to do that, but what I want to happen automatically right after inserting the data in the SQL database is that I want the same data to be carried over to another page where there'll be another form and want that data to be populated in this new form. How do I do that?
View Replies
View Related
I have a token passed to me from a secruity module on a remote machine that has checked username and password.
I am supposed to get that token and then query a security client that contains details about the token - the username and ip
I can't get the posted data from the form into a little asp page that was supplied as an example. Code:
View Replies
View Related
I created a form for users to sign up for a newsletter our site sends out. The thing is we use a third party that keeps a db of our subscribers and sends the email for us. The signup resides on our site and when the user submits they get poasted to this third party site and then click through and get refreshed to our site again.
We want change that process and keep the user on our site so now thier values need to get posted to the 3rd party behind the scenes. Code:
View Replies
View Related
I have a form that ignores my form validation code. My code works if I use the post method of <%=Request.ServerVariables("SCRIPT_NAME")%>.
But, If I post the form to another .asp page, which I prefer, the code doesn't work. Do anyone have any suggestions? Here's my code.
I have a form that ignores my form validation code. My code works if I use the post method of <%=Request.ServerVariables("SCRIPT_NAME")%>. But, If I post the form to another .asp page, which I prefer, the code doesn't work. Do anyone have any suggestions? Code:
View Replies
View Related
i'm tring to send post data using
set objSrvHTTP = Server.CreateObject ("WinHTTP.WinHTTPRequest.5.1")
....
objSrvHTTP.send xmlstring
but the transfer rate is very low(4 min per MB on LAN)..
some ideas?
(with MSXML2.ServerXMLHTTP.4.0 is equal)
View Replies
View Related