Send A Variable Via Post Method
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
ADVERTISEMENT
is it possible to send info to a page with the post method automaticaly ?
whithout the user having to click the button ?
View Replies
View Related
I''ve got a problem with "dim". I want to receive a variable send from a formular with method GET Why it doesn't work??
<body>
<%
dim name
dim vorname
....
name = request.QueryString("name")
vorname = request.QueryString("vorname")
....
response.write ("name" )
response.write ("vorname" )
....
response.end
%>
</body>
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 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 have a demo.asp page, that can't pass hidden value "mr progrramer" to
itself using POST method. Only "mr" is passed.
I created a second asp file demo1.asp and passed "mr programmer" and whole
string (include space b/w mr and programmer was passed successfully).
The code for demo.asp is:
<%
name = request.Form("name")
response.Write "hello " & request.Form("name")
' if name is empty then store some string with space in it
' problem is the word before space 'mr' is passed, but 'programer' is not
passed
if len(name)=0 then
name = "mr programmer"
end if
%>
Code:
View Replies
View Related
I have a .asp page that uses the post method and it works fine on my computer using iis. But when i put it on the web server (it has windows NT4) it wont work.
I've read that you have to do something to allow the post method on the server.
i know nothing about windows NT4 but can get access to the server. can someone please let me know what i have to do to get this to work?
Just to let you know the post method is for ssending a login and pass to another page that search a database for the record. If there is another way to do this that does not show the variables in the url please let me know. i am also willing to make it so that everything is on the same page so i dont have to pass anything.
View Replies
View Related
Is there a limit to how many variables you can pass on using post method?
View Replies
View Related
when we should use GET method, when we should use POST method? GET method only sends limited amount of data, and it will show the data as part of URL. POST method won't show the data as part of URL, and can send any amount of data.
View Replies
View Related
I hv an asp page that allows the users to enter two dates, when they click a button i have another asp page that is opens word and shows the results in a table.
in order to get the criteria i think i need to use the post method for the page that opense word. however i ahve done a search and can not see anything that properly explains this method.
View Replies
View Related
I'm having trouble reading data that i send to the server using ajax. The call am making in the client-side javascript is:
fullProject.open("POST", url, false);
fullProject.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
fullProject.send('var1=' + projectData);
and I want to know how to grab that data using asp. The call that I've
been manipulating is
<%
response.write "data: " & request("var1")
%>
That hasn't been working, and all I've been receiving back is the string "data: ".
View Replies
View Related
how can i (if at all possible) use post with response method? before i always did something like this to pass variables to the nest page:
Response.Redirect "main.asp?per=" & per
this obviously creates a querystring and that i am trying to avoid... so, if anyone knows how to do this please pass it on.
View Replies
View Related
I'm trying to sent information from a form to the server using the post method. The problem I'm having is that I have a file form field and it reqiures enctype="multipart/form-data". With this enctype, the data from the text fields doesn't get passed to the server. Is there a way around this?
View Replies
View Related
When I use the following to post my value, I got SQL like this:
SELECT+A%2ECMPL%5FFIELD%5FID%2C+A%2ECMPL%5FFACILIT Y%.
How to get the SELECT without those hex value.
<FORM NAME='formname' METHOD=POST
ACTION='ExcelExport.asp?noIncludes=yes'>
<INPUT TYPE='Hidden' NAME='strSQL'
VALUE="<%=replace(server.urlencode(strsql),"'","`")%>">
<tr><td BGCOLOR=E4E4E4 ID='bodytext' COLSPAN='8' align='center'><input
TYPE=SUBMIT value='export'></td></tr>
</form>
View Replies
View Related
How could I use POST method to transfer parameters with XMLHTTP?
With GET all works correct, but with POST I get a problem.
client.asp with GET - all works .....
View Replies
View Related
we have been able to list information about people in a 5 column table coming from the database. Code:
View Replies
View Related
I cant use Microsoft.XMLHTTP object's Send method for posting a form. Can anyone help?
The form field is
<input type="hidden" name='content1' value='Add User'>
But when i post
objXMLHTTP.Send "content1=Add User"
an error occurs.
Neither of these works:
objXMLHTTP.Send "content1='Add User'"
objXMLHTTP.Send "content1=""Add User"""
View Replies
View Related
I'm trying to "post" a form in asp to a script off the main site.
I suppose I could do a response.redirect to the script, but am wondering if there is a more direct way to do it. Something like the XMLHttp obj in js.
View Replies
View Related
I am running the following script for sending e-mail thro web
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "vkumar@ugs.com"
objCDOMail.To = "vkumar@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
Set objCDOMail = Nothing
-------------------------
I get the following error, when I call send method of CDONTS.NewMail object
---------------------
Microsoft VBScript runtime error '800a0046'
Permission denied
/cae/library/issueupdate.asp, line 61
----------------------------
I tried both the following. Everything looks fine. My OS is windows200
server
http://support.microsoft.com/defaul...kb;en-us;286301
http://support.microsoft.com/defaul...kb;en-us;197619
Can somebody give a clue, what is going wrong....
View Replies
View Related
Is there a way to determin if the email message was sent? I have a numnber of applications that use CDONTS to send mail from both ASP and ASPX pages. If the server is down mail does not get sent. I do not see a way to determine this by code. Does anyone know of a way?
View Replies
View Related
how to pass variable using a url?let say i have a page contain a variable Variable, so when i want to pass the variable using url i shd using what code?thx a million.
View Replies
View Related
Is it possible to have a form ON submit. Post data to an access data file at the same time send an email of the data submitted. I have a send mail asp script that will create the email and send it. I have a form that will create a record how are they performed together?
To put a screws in the mix. I am using Front page to create the connection between the form and the MDB file. My hands are tied in having to use Front Page.
View Replies
View Related
Let's say if I want to send a http "Post" request to a url, and check the http status code later. How should I write the code? I have found example to use WinHttp to send "Get" request and check the http status code:
======
Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5")
objWinHttp.Open "GET", strURL
objWinHttp.Send
If objWinHttp.Status <> 200 Then
...
End If
======
How should I write the code if I need to use "POST" to send data in a form, and to check the http status code later?
View Replies
View Related
I have an asp page that posts to a third-party site. I need to send an e-mail from this page when the user submits the form but before it posts to the other site.
View Replies
View Related
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
View Related
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
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
My form has mixed fields in it, one of them is a file field for picture upload when i submit my form via method="GET" i can retrieve my form data with Request.QueryString() method but as then I loose my file, but as soon as I switch to method="POST" and use Request.Form() method i get nothing unless I remove enctype="MULTIPART/FORM-DATA" at which point I loose mi file also... What is causing this? is there a different enctype i need to be using?
View Replies
View Related
I want to use the POST method to submit the form and then grab the
parameters in the asp file with request.form("parm").
The problem is that I am using the _search target to open the asp
page.
When I use _blank target there is no problem, either I use GET or POST
method.
But when I use _search target, only GET method works. Code:
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 am trying harder to mix this 2 solutions... but without success... the below on seen to be grabing a template and replace the data with the values posted in a form Code:
View Replies
View Related