473,795 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Method POST not working

Here is the link of the website
http://www.smartcharlotte2050.com/YourThoughts.asp

I have been told to change only the form action part of this site.which is
to "response.a sp"
Here the method POST is not working,and I dont know how to solve this
problem

I have tried making my own sample. asp page with 4 textareas as in
YourThoughts.as p,and also I have kept the textarea name and ID same as that.

My sample asp is working perfectly fine,in my page method POST is working. I
need to insert content of textarea in database,

But in YourThoughts.as p nothing is being inserted in database .after
clicking the submit button, the page just redirects to response.asp.

Please please help me, how to solve this problem.
Thank You

Jul 15 '08 #1
11 2832
I forgot to add,is it because YourThoughts.as p have multiple forms,but as far
as I know ASP can have multiple form,also I tried deleting the form "which I
am not suppose to as they dont want any changes in their website" but still
the problem persist.

Please do reply!!!!!!!!

Thank You

"BLUESTAR" wrote:
Here is the link of the website
http://www.smartcharlotte2050.com/YourThoughts.asp

I have been told to change only the form action part of this site.which is
to "response.a sp"
Here the method POST is not working,and I dont know how to solve this
problem

I have tried making my own sample. asp page with 4 textareas as in
YourThoughts.as p,and also I have kept the textarea name and ID same as that.

My sample asp is working perfectly fine,in my page method POST is working. I
need to insert content of textarea in database,

But in YourThoughts.as p nothing is being inserted in database .after
clicking the submit button, the page just redirects to response.asp.

Please please help me, how to solve this problem.
Thank You
Jul 15 '08 #2

"BLUESTAR" <BL******@discu ssions.microsof t.comwrote in message
news:4A******** *************** ***********@mic rosoft.com...
Here is the link of the website
http://www.smartcharlotte2050.com/YourThoughts.asp

I have been told to change only the form action part of this site.which is
to "response.a sp"
Here the method POST is not working,and I dont know how to solve this
problem

I have tried making my own sample. asp page with 4 textareas as in
YourThoughts.as p,and also I have kept the textarea name and ID same as
that.

My sample asp is working perfectly fine,in my page method POST is working.
I
need to insert content of textarea in database,

But in YourThoughts.as p nothing is being inserted in database .after
clicking the submit button, the page just redirects to response.asp.

Please please help me, how to solve this problem.
Thank You
Since this group deals with asp (which runs on the server and is not
accessible via the browser) perhaps you should post the code that you are
trying to "get to work" and explain the symptoms that lead you to believe it
"is not working".

--
Mike Brind
MVP - ASP/ASP.NET
Jul 15 '08 #3
So where is the code for "response.asp"? ????
Jul 15 '08 #4
"BLUESTAR" wrote:
I forgot to add,is it because YourThoughts.as p have multiple forms,but as far
as I know ASP can have multiple form
Nothing to do with ASP. HTML allows as many <FORMtags on a page as you
want. Only restriction is that they CAN NOT be nested (you can't have a
<FORMtag *inside* another <FORM>....</FORMrange).

And *ONLY* the <FORMthat is actually submitted by the user will be posted
to the ACTION= specified in that one <FORM>. All other forms are ignored.

This is true whether you are using ASP or PHP or JSP or even just using a
<FORMto go to another HTML page.

As Mike said, no code, no help. We can't read your mind.
Jul 15 '08 #5

Okay somehow I have solved the error,but now i am stuck in new error.

this is the response.asp code
<%
Set db=Server.Creat eObject ("ADODB.Connect ion")
db.Open "DSN=mysurv ey;"
strDate=Date()
for i=1 to 4
res=Request.For m("Your Thoughts Q"&i)
sSQL = "INSERT INTO survey (ID,Response,Da te) "
sSQL=sSQL & " VALUES ( '"
sSQL=sSQL & i & "','"
sSQL=sSQL & res & "','"
sSQL=sSQL & strDate & "')"
db.Execute sSQL
Next
db.Close
Response.Write ("Your data has been successfully send.Thanks for your
response!!!")

%>
this the link of the website from where data will be stored in database.
http://www.smartcharlotte2050.com/YourThoughts.asp

The error I am getting

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

Technical Information (for support personnel)

* Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO
statement.
/testasp/SurveyResponse. asp, line 13

* Browser Type:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16)
Gecko/20080702 Firefox/2.0.0.16

* Page:
POST 93 bytes to /testasp/SurveyResponse. asp

* POST Data:

Your+Thoughts+Q 1=gf&Your+Thoug hts+Q2=dd&Your+ Thoughts+Q3=cc& Your+Thoughts+Q 4=bb&Submit=Sub mit

* Time:
Wednesday, July 16, 2008,

I have even tried the following,but problem persist.

In IE, turn off the "Friendly HTTP error messages" by choosing tools -
internet options - advanced. The full error messages as well as the line
number of the error will then be displayed.
Thanks Again for your support

"Old Pedant" wrote:
So where is the code for "response.asp"? ????

Jul 16 '08 #6

one more thing to add,the insert statement is working perfectly fine and
even response.asp is working correctly when i run it in sql server 2005.but
when i used Access 2007 the problem occurs.and i will have use Access
only..no escape.

i have configured my connection string same as before,but i don no where am
i wrong
"Old Pedant" wrote:
So where is the code for "response.asp"? ????

Jul 16 '08 #7
BLUESTAR wrote:
Okay somehow I have solved the error,but now i am stuck in new error.

this is the response.asp code
<%
Set db=Server.Creat eObject ("ADODB.Connect ion")
db.Open "DSN=mysurv ey;"
strDate=Date()
for i=1 to 4
res=Request.For m("Your Thoughts Q"&i)
sSQL = "INSERT INTO survey (ID,Response,Da te) "
sSQL=sSQL & " VALUES ( '"
sSQL=sSQL & i & "','"
sSQL=sSQL & res & "','"
sSQL=sSQL & strDate & "')"
db.Execute sSQL
Next
db.Close
Response.Write ("Your data has been successfully send.Thanks for your
response!!!")

%>
<snip>
* Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in
INSERT INTO statement.
/testasp/SurveyResponse. asp, line 13
You cannot debug a sql statement without knowing what it is. Insert the
following before the Execute statement:

'***********com ment out when finished debugging****** *
Response.Write sSQL & "<BR>"
Response.End
'***********com ment out when finished debugging****** *

Run the page and look at the resulting sql statement. The error should
stick out like a sore thumb. If not post it here.

Further points to consider:
Your use of dynamic sql is leaving you vulnerable to hackers using sql
injection:
http://mvp.unixwiz.net/techtips/sql-injection.html
http://www.sqlsecurity.com/DesktopDefault.aspx?tabid=23

See here for a better, more secure way to execute your queries by using
parameter markers (tokens):
http://groups-beta.google.com/group/...e36562fee7804e

Personally, I prefer using stored procedures, or saved parameter queries
as they are known in Access:

Access:
http://www.google.com/groups?hl=en&l...TNGP12.phx.gbl

http://groups.google.com/groups?hl=e...tngp13.phx.gbl

SQL Server:
http://groups.google.com/group/micro...09dc1701?hl=en

>
I have even tried the following,but problem persist.

In IE, turn off the "Friendly HTTP error messages" by choosing tools -
internet options - advanced. The full error messages as well as the
line number of the error will then be displayed.
Friendly Errors was already disabled
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 16 '08 #8

thanks for reply

but after adding Response.Write sSQL & "<BR>"
Response.End

I am getting this
INSERT INTO survey (ID,Response,to daydate) VALUES ( '1','s','7/16/2008')
but i have used for loop which will insert 4 datas,but here i am showed only
one.

so what do you think ,my INSERT query is correct?????
but nothing is being inserted in database.
my problem is i am not use to Microsoft Access,

Please do reply

Thanks
"BLUESTAR" wrote:
>
one more thing to add,the insert statement is working perfectly fine and
even response.asp is working correctly when i run it in sql server 2005.but
when i used Access 2007 the problem occurs.and i will have use Access
only..no escape.

i have configured my connection string same as before,but i don no where am
i wrong
"Old Pedant" wrote:
So where is the code for "response.asp"? ????
Jul 16 '08 #9

Now I am getting this error
rror Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable
query.
/testasp/SurveyResponse. asp, line 16

line 16 is db.Execute sSQL

"BLUESTAR" wrote:
>
thanks for reply

but after adding Response.Write sSQL & "<BR>"
Response.End

I am getting this
INSERT INTO survey (ID,Response,to daydate) VALUES ( '1','s','7/16/2008')
but i have used for loop which will insert 4 datas,but here i am showed only
one.

so what do you think ,my INSERT query is correct?????
but nothing is being inserted in database.
my problem is i am not use to Microsoft Access,

Please do reply

Thanks
"BLUESTAR" wrote:

one more thing to add,the insert statement is working perfectly fine and
even response.asp is working correctly when i run it in sql server 2005.but
when i used Access 2007 the problem occurs.and i will have use Access
only..no escape.

i have configured my connection string same as before,but i don no where am
i wrong
"Old Pedant" wrote:
So where is the code for "response.asp"? ????
>
>
Jul 16 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1924
by: Asp Help | last post by:
I'm working on a ASP applicatition to create Windows 2000 users. Because I don't want everybody to have access to the site I've changed te security in IIS 5.0 which runs on a windows 2000 Sp4 server: The security on the site is mainly anonymous. The anonymous account has been changed to an account which has the right permissions. The security on one asp page (GetUser.asp) is changed to only "Windows Integrated". A User that access the...
28
5224
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass(); .... and then call the virtual method, why is it that the base class's method is called instead of the overridden method? How do I fix this if I don't know at runtime what the child class is? I'm using Activator.CreateInstance() to load the...
4
10321
by: Paul J. Lay | last post by:
I am sending and receiving multipart messages using the WebClient UploadData method Method=Post. Everything seems to work well except when the URL contains parameters. For example: http://www.someURL.com?parm1=data1&parm2=data2. I don't believe these paramters are transmitted as part of the URL with the HTTP Post interface. I was under the impression that the WebClient class automatically handled these parameters for POST. The...
9
2126
by: WJ | last post by:
I have an Asp.Net page that redirects the user to another page with a piece of data to be passed. Below is the c# instruction: Response.Redirect("mySpecialPage.aspx?go1="+strGoName); This will expose the "go1" parameter on the Address field of the MS/IE browser because it uses the "GET" method. Is there a way that I can force the system to use the "POST" method with the above payload ? Thanks for your help,
5
3029
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I need to send data from my server via the post method to the payment server. The payment server does not run asp.net. I dont know what they run. The payment server then returns to my server with the
3
7465
by: PawelR | last post by:
Hello Group, How send few value using HttpWebReguest with POST method in one request? Thx. PawelR
6
8755
by: James MA | last post by:
I'm now writing a small program to communicate a web server to simulate a web client. I use te httpwebrequest to talk with the server, and it works find for "POST" method, however, when i test other link using "GET" method, i found that the cookies data has not included in the request. Here is the sample: ' sURL is the URL of server page ' pCookies is a varible contain the cookies data
4
4352
plumpnation
by: plumpnation | last post by:
Hello one and all. I have recently been working outside of my field of expertise alot, and it is greatly distressing me. I have learned a small amount of php and actionscript, but now need to move into the realm of asp. I have been supplied this script in asp classic by the web service administrator as an example, but i have no idea how to use it in conjunction with a html POST form. 1. Should the form be put within the same page? ...
5
3113
by: rn5a | last post by:
The .NET 2.0 documentation states the following: When using a DataSet or DataTable in conjunction with a DataAdapter & a relational data source, use the Delete method of the DataRow to remove the row. The Delete method marks the row as Deleted in the DataSet or DataTable but does not remove it. Instead when the DataAdapter encounters a row marked as Deleted, it executes its DeleteCommand method to delete the row at the data source. The...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.