This proves it even more as a non Twitter Bootstrap issue, it is very basic 
html.

<off-topic>
In exchange for my answer, I'd appreciate you send me a list of all 
questions you encounter or you wished you understood earlier.

I am writing a fork-me-on-github site that address things that to help 
learn html+css+javascript basics. http://htmlcsstherightway.org/

Contributions from other readers are welcome.

Post them 
there: https://github.com/renoirb/htmlcsstherightway/issues?milestone=1

please :)
</off-topic>

About your question.

It is quite easy actually. It seems you are missing a form tag.

I assume you do not have one enclosing in any other level of html 
containing what you pasted in your email.

What I recommend you is to always try something WITHOUT javascript before. 
Basic things should always work without it, then, whipped cream kicks in. 
We call that Progressive enhancement.

Then, your form to work MUST hae a <form> tag with at least two attributes: 
action, method.

One to say "where" to post to
One to say "how" (get is also possible, it transforms in the address bar 
with ?name=value&name=value)

But, please, do not use get in a form. Because valid html requires some 
characters to be converted (javscript's URLencode, PHP htmlentities). 
Consier it doesn't exist!! 

For the sake of the next person to work with your code

All is described 
here: http://docs.webplatform.org/wiki/Meta:HTML/Elements/form

Now, applied to your need:

---------- page.html ---------------
<form action="_insert.php" method="post">
<!-- form input with naming scheme here. Note that <button> tag are not 
input that sends data their default behavior is only as submit the form 
equal to an <input type=submit value=}Yo /> -->
</form>


Then on _insert.php, first line, execute this


<?php
Var_dump($_POST); exit;


You can see a full example of valid html in this fiddle 
http://jsfiddle.net/renoirb/PVHwZ/embedded/result/


Last words:
- button are like input submit, to have multiple choice looking like 
buttons, you need to trigger a hidden radio/checkbox input
- never stop reading, if you never heard those letters, RTFM stands for 
"Read The *Fabuluous* Manual"
- Good sources to learn: Smashing magazine, WebPlatforms, Mozilla Developer 
Network, .Net Magazine

Hope it helped setting you on the right path.

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to