Go to Post I'm nervous for those awesome rookie teams that you may not know about much but that just come and do awesome with some fantastic strategy...Rookies rock. - Eugenia Gabrielov [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-12-2008, 22:34
DMetalKong's Avatar
DMetalKong DMetalKong is offline
Registered User
AKA: David K.
no team
Team Role: College Student
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Bridgewater
Posts: 144
DMetalKong is a jewel in the roughDMetalKong is a jewel in the roughDMetalKong is a jewel in the rough
Send a message via AIM to DMetalKong
Re: design help

The comment box would be just a form with a textarea in it.

Code:
<form method='post' action='YOUR URL HERE'>
<label for='comment_box'>Comments:</label><textarea name='comment_box' id='comment_box'></textarea>
<input type='submit' value='Submit' />
</form>

If you are asking for the code for how to store people's responses, you will need to do some server-side scripting. No matter what type of webserver you have w3schools as a great resource. You will probably want to check out the tutorials on HTTP POST and (assuming your webserver runs PHP) PHP. If you are using PHP, the PHP website is another great place for info.

Once you have POST'ed the data from your form, you will need a place on your server to store the comments. The more crude method would be to use filesystem functions and save the comments to a .txt on your server. The better way would be to use MySQL, a database system. MySQL allows for much better data organization than a dump into a file.

So, putting together a list of what needs to happen:
  1. Create a form for the user to input data
  2. Create a server-side script to get the data from the user
  3. Store the data either in a .txt file or in a database
  #2   Spotlight this post!  
Unread 11-12-2008, 04:57
Dragonos's Avatar
Dragonos Dragonos is offline
Web Master/ Engineer/ Programer
AKA: Eric G.
FRC #0095 (The Grasshoppers)
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Upper Valley NH
Posts: 16
Dragonos is an unknown quantity at this point
Re: design help

Also I might suggest to reduce spam by using a captcha. We had hundreds of spam problems before.
http://www.captcha.net/
__________________


PM me for 3dsMax Help!
  #3   Spotlight this post!  
Unread 11-12-2008, 11:23
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: design help

As shown here, you can set the action of an html form to be "mailto: some@email.address" and it will submit the results over email (note: it all this does is open a new email message for the user with your data fields filled in, then the user has to actually click send. Try it on the page linked above).

As noted above, the only way to store comments from users is to store send them somehow to a server (it obviously makes no sense to try to store them on the client).

--HTML forms interacting with a CGI/PHP/etc script is the usual method, but I could think up some rather obscure ones
--perhaps using an XMLHttpRequest in javascript as a mock socket connection to some computer you have set up
--or just embed a java applet to get the most flexibility: you might even be able to find a SMTP client written in java that could send the email result to you like above, but do it all transparently, without the user seeing a new message open up and then have to click send, etc.
--Something similar is probably available in Flash/Actionscript as well, but I don't have experience there.

Of course the last three options aren't "pure" html or even dhtml, which seemed to be the point of your question, however it does keep all the functionality on the client side so you don't need server side scripting on your particular webhost, but it's really difficult to find a webhost now that *doesn't* support server side.

Hope one of those options works for you

--Ryan

P.S.: Check the control panel of your webhost, many of them have a library of commonly used, prebuilt CGI scripts such as bulletin board, comment box, email-to script, etc that they will give you simple instructions on how to call from your page. If your particular host has these, that would be by far the simplest way to go.
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
  #4   Spotlight this post!  
Unread 15-12-2008, 13:36
trainoflegos trainoflegos is offline
Registered User
FRC #1828
 
Join Date: Dec 2008
Location: tucson,az
Posts: 3
trainoflegos is an unknown quantity at this point
Re: design help

thx that helped
Closed Thread


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pit design help Black Claw General Forum 27 20-11-2008 20:11
Forklift Design Help!!! ALARM Robotics General Forum 11 25-01-2008 10:03
Slider design help? vivek16 Technical Discussion 4 13-01-2008 16:26
Circuit Design Help Ronald_raygun Electrical 18 26-03-2007 07:32
Transmission Design Help JoelP Technical Discussion 8 24-04-2006 16:59


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi