All Forums >> [Scripting] >> WSH & Client Side VBScript >> what is wrong with this form request? Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Posts: 13
Score: 0
Joined: 5/31/2001
From: USA
Status: offline
hi all,
ive tried and tried to pull this form entry into a database update and it just wont work. if i take the variable "ns" and make it an actual text string, the update works fine...but if i use a "request.form("theformobjectnamehere") it wont pull. please help! thanks! here's my code:
<%@ LANGUAGE = VBScript %> <html>
<head> <title>moongroover editor</title>
<% Dim DataConn Dim CmdUpdateRecord Dim MYSQL Dim ns Dim edited
Set DataConn = Server.CreateObject("ADODB.Connection") Set CmdUpdateRecord = Server.CreateObject("ADODB.Recordset")
Posts: 12
Score: 0
Joined: 5/31/2001
From: USA
Status: offline
I'm not entirely certain what you're trying to do, but request.form and request.querystring are different ways to get info back from a submitted page. Use form if sending by "Post" and use Querystring if sending by "Get". These are both ways to get info back from your <input> items, but I don't believe you can use both in the same page. If you're are getting info back in request.querystring, you can place your "name="instruments"" input outside of a "form" section and have it returned in the querystring. Otherwise, put your "name=groover" input inside the form (with the instrument input) and use a submit input to send them both in the request.form string.
I don't know if I'm being clear, but hopefully this gets you a little less stuck. Let me know if you'd like more elaboration.