Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-27-2006, 02:00 PM   #1
Member (7 bit)
 
Join Date: Jan 2004
Posts: 70
Questionnaire what language?

I have to create a questionnaire/survey. I would like the results saved in a database for example. What would be the best languages to use for creating it, in terms of html asp etc
Buckfast is offline   Reply With Quote
Old 02-27-2006, 02:37 PM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Depends on the server that you are running. For Windows Servers, it would be ASP and SQL Server. For 'nix servers it would be PHP/MySQL.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 02-28-2006, 04:25 PM   #3
Member (7 bit)
 
Join Date: Jan 2004
Posts: 70
Does anyone know how i can get the value from two radio buttons to add yes or no into a boolean column in an access database. I have got it working for adding something such as name already. Im using html and asp.

Radio buttons in html form

[quote]Yes
No[/CODE]

ASP the name part works but not for other part
Quote:
<%

name = TRIM(request("name"))
devices = TRIM(request("devices"))

dim dbconn
dim repliesrs
dim filepath

filepath = server.mappath("questionnaire.mdb")
set dbconn = server.createobject("ADODB.connection")
dbconn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& Filepath

Set repliesrs = server.createobject("ADODB.recordset")
repliesrs.open "answers",dbconn,adopenstatic,adlockoptimistic

repliesrs.addnew
repliesrs("name")=name
repliesrs("devices")=devices
repliesrs.update
repliesrs.close
dbconn.close


%>
it works fine without these two lines
Code:
devices = TRIM(request("devices"))
Code:
repliesrs("devices")=devices
Buckfast is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:05 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2