Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 10-31-2005, 04:12 PM   #11
Daemon Poster
 
Techy Geek's Avatar
 
Join Date: Feb 2005
Posts: 1,320
Send a message via MSN to Techy Geek
Default Re: Even more help - sending user options

can anyone help me, I'm desperate, sure, the coding that root gave me is great, but can anyone tell me:
(a) Whether it is completely correct (he mentioned that there may be some errors)
(b) If I need to create a database for it (and if so how)
(c) How would I get the code to work, are there some things in it I need to change (such as location of database etc etc)

thanks
__________________

__________________
"If I seem to act unkind, its only me and not my mind" I Want To Tell You, The Beatles, Revolver
"When I am king, you will be first against the wall" Paranoid Android, Radiohead, OK Computer
There are two types of people, those who hate Microsoft, and those who work for it...
Possibly a Mac Convert
Techy Geek is offline   Reply With Quote
Old 11-01-2005, 05:40 AM   #12
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,003
Default Re: Even more help - sending user options

to work with that code sample,
You need to create a database in access called mydatabase.mdb

inside of the access database you need one table called questionnaire.
this should have three columns, Name, (text) gender (text) and site (text).

I suggest that you put in some test data, perhaps a few rows of expected reuslts.

you should save this into a folder called database in your account,

you need to change the line in the text where it says USERNAME to actually be your username for the site.


that answers questions b and c, (create the database using access and change the username part of the code).

Now I suggest that you check the pages, it might be best to start with the results page to see how you get along returning the test data you expect, then try to submit results to the database.

Like I said before though, without a clear idea of what you actually want to do there isn't really anything that i can do more to help you with...

unless... Hmmm... watch this space I have an idea.
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 11-01-2005, 08:28 AM   #13
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,003
Default Re: Even more help - sending user options

right...
back... I would have been quicker but I had to make sure it was bullet proof...

I'm opening a mail porthole, anyone who wants to have a mail service for feedback etc on their site should feel free to use it, it works by a very simple process...

Firstly you create your webform with the fields that you want on it. then you send me a PM asking me to add you as an allowed emailer send a username that you wish to use with that form, then send an email address you want things to be delivered to and them send me a list of the input fields on your website...

send it to me in an XML format like this,
Code:
<mail>
  <account>
    <name>root</name>
    <email>email@isp.com</email>
    <field>f1</field>
    <field>f2</field>
    <field>f3</field>
  </account>
</mail>
you can have as many fields as you like. name the file whatever yuo put in the name field with the exrtension .xml

then add a hidden field to your existing form with that username as it's value and change that target of the form. to be like the example below...

Code:
<form action="http://www.kathulu.co.uk/mailer/mailer.php" method=post>
<input type=hidden name=account value=root />
<input name=f1 />
<input name=f2 />
<input name=f3 />
<input type=submit />
</form>

You have to complete the part about filling in the XML sheet and seding it via PM because I don't want to open a service that is open to abuse by spammers,
you can't email more than one address because again I don't want spammers to use it.

this doesn't answer the questions about databases, but it did give me something to do this morning, and fulfils the original requirements!
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 11-02-2005, 02:28 PM   #14
Daemon Poster
 
Techy Geek's Avatar
 
Join Date: Feb 2005
Posts: 1,320
Send a message via MSN to Techy Geek
Default Re: Even more help - sending user options

wow, you are great root, I'd love to give you a rep point, but I can't
I'll try that email thing of yours, thanks
__________________

__________________
"If I seem to act unkind, its only me and not my mind" I Want To Tell You, The Beatles, Revolver
"When I am king, you will be first against the wall" Paranoid Android, Radiohead, OK Computer
There are two types of people, those who hate Microsoft, and those who work for it...
Possibly a Mac Convert
Techy Geek is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:54 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0