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!?
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
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:
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 %>
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.
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.
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.
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?
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
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?
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.
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.
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?
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.
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.
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.
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?
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
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.
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?
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.
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: