Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-01-2008, 07:30 PM   #1 (permalink)
 
Newb Techie

Join Date: Sep 2008

Posts: 34

pcbres12 is on a distinguished road

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  
Old 10-01-2008, 07:40 PM   #2 (permalink)
S0ULphIRE's Avatar
 
01001100011011110110110

Join Date: Mar 2007

Location: Perth, Australia

Posts: 2,663

S0ULphIRE is a jewel in the roughS0ULphIRE is a jewel in the roughS0ULphIRE is a jewel in the rough

Default Re: Submit Buttons

the code in what language? C, C++, Java, VB, Assembly, ??
__________________
"As a result of all this hardship, dirt, thirst, and wombats, you would expect Australians to be a sour lot. Instead, they are genial, jolly, cheerful, and always willing to share a kind word with a stranger, unless they are an American."
-- Douglas Adams

Click this if I helped you
Note: only awesome people have the ability to rep me. Are you awesome? Why don't you try hitting the rep button and find out...
>>>><<<<
S0ULphIRE is offline  
Old 10-02-2008, 03:30 PM   #3 (permalink)
 
Newb Techie

Join Date: Sep 2008

Posts: 34

pcbres12 is on a distinguished road

Default Re: Submit Buttons

i would say either java or java script
pcbres12 is offline  
Old 10-02-2008, 05:45 PM   #4 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,720

CrazeD will become famous soon enoughCrazeD will become famous soon enough

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.
__________________

Intel Q9400 | Gigabyte EP45-UD3P | G.Skill 2x2GB DDR2 1000 | XFX HD5870

Need website help? PM me!
CrazeD is offline  
Old 10-02-2008, 06:18 PM   #5 (permalink)
 
Newb Techie

Join Date: Sep 2008

Posts: 34

pcbres12 is on a distinguished road

Default Re: Submit Buttons

How do i view what is submitted by clicking that button?
pcbres12 is offline  
Old 10-02-2008, 06:23 PM   #6 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,720

CrazeD will become famous soon enoughCrazeD will become famous soon enough

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;

?>

__________________

Intel Q9400 | Gigabyte EP45-UD3P | G.Skill 2x2GB DDR2 1000 | XFX HD5870

Need website help? PM me!
CrazeD is offline  
 
Closed Thread

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 7 12-13-2008 01:13 PM
How can I change my gamepad buttons? JasperHope Hardware Troubleshooting 2 06-30-2008 01:28 PM
Keyboard buttons arrangement mrgiba Other Computer HW Topics 1 06-09-2008 12:26 PM