Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 10-01-2008, 08:30 PM   #1 (permalink)
Newb Techie
 
Join Date: Sep 2008
Posts: 28
Default Submit Buttons

What is the code for a submit button for like a quiz or a poll or information. And where does the info get sent when it's submitted?
pcbres12 is offline   Reply With Quote
Old 10-01-2008, 08:40 PM   #2 (permalink)
Ultra Techie
 
S0ULphIRE's Avatar
 
Join Date: Mar 2007
Location: Perth, Australia
Posts: 835
Send a message via MSN to S0ULphIRE
Default Re: Submit Buttons

the code in what language? C, C++, Java, VB, Assembly, ??
__________________
(\ /) This is Bunny. Add him to your signature
(O.o) to help him achieve world domination.
(> <)

I am 75% addicted to Counterstrike. What about you?
S0ULphIRE is offline   Reply With Quote
Old 10-02-2008, 04:30 PM   #3 (permalink)
Newb Techie
 
Join Date: Sep 2008
Posts: 28
Default Re: Submit Buttons

i would say either java or java script
pcbres12 is offline   Reply With Quote
Old 10-02-2008, 06:45 PM   #4 (permalink)
Master Techie
 
CrazeD's Avatar
 
Join Date: Feb 2006
Location: Maine
Posts: 2,941
Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Submit Buttons

If you're talking about a web form or something, you can't make a button with Javascript. You make the button with html, like this:

Code:
<form action="" method="">
<input type="submit" name="submit" value="submit" />
</form>
Action is the script that will process the form is located, and method is either GET or POST. Get is sent via the URL, POST is not.

Now, Javascript can process the script as you use it, or before you submit it. If you want compatibility and any security whatsoever, you'll want a scripting language or CGI like PHP, Perl, Python etc to handle the form.
__________________

Need website help? PM me!
CrazeD is offline   Reply With Quote
Old 10-02-2008, 07:18 PM   #5 (permalink)
Newb Techie
 
Join Date: Sep 2008
Posts: 28
Default Re: Submit Buttons

How do i view what is submitted by clicking that button?
pcbres12 is offline   Reply With Quote
Old 10-02-2008, 07:23 PM   #6 (permalink)
Master Techie
 
CrazeD's Avatar
 
Join Date: Feb 2006
Location: Maine
Posts: 2,941
Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Submit Buttons

By the action in the <form>.

For example;

Code:
<form action="test.php" method="post">
<input type="text" name="name" /><br />
<input type="text" name="email" /><br />
<input type="submit" name="submit" value="submit" />
</form>
Then test.php:

Code:
<?php

$name = $_POST['name'];
$email = $_POST['email'];

echo $name.'<br />'.$email;

?>

__________________

Need website help? PM me!
CrazeD is offline   Reply With Quote
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to submit my website in google? darwin Search Engines & Internet Traffic 6 10-26-2008 11:40 PM
How can I change my gamepad buttons? JasperHope Hardware Troubleshooting 2 06-30-2008 02:28 PM
Keyboard buttons arrangement mrgiba Other Computer HW Topics 1 06-09-2008 01:26 PM
Diamondback Side Buttons Not Working In BF2 Metal Chaos PC Gaming 2 01-22-2008 09:12 AM


All times are GMT -5. The time now is 10:14 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0