
![]() |
@elliotn | |
this topic will deal with forms only |
||
16
Replies
4503
Views
0 Bookmarks
|
![]() |
@elliotn | 1 August 06 |
inseting a form in a html page could be define as easy the <form>code is used tell the html that u are about to make a form
|
||
![]() |
@elliotn | 1 August 06 |
eg if u want a user to write his/her name in a text field u would put it as <form> Name:<input type=''text''> </form> the above code will make a form of which a user can type in his or her name.
|
||
![]() |
@elliotn | 1 August 06 |
4 a password it must b PASSWORD:<input type=''password'' name=''password'' NB. that an asterix will appear in a user's browser as they pin in the password
|
||
![]() |
@elliotn | 1 August 06 |
a radio b*ttons are form of which user can only choose one limited option eg: <form> <input type='radio'
|
||
![]() |
@kwah | 20 August 06 |
A typical HTML login form containing everything youre ever likely to use :: <form action='http://url for the form to be sent to' method='post'> Username:<input name='username' id='username' type='text' value='username' size='15' maxlength='45'/> <input type='submit' value='Login!'/> </form> |
||
![]() |
@kwah | 21 August 06 |
all forms contain three things. the <form> and </form> tag - with various extra stuff, including the action=' ' attribute - it basically tells the browser what to do with the form .. at least one input - textbox, radio b*ttons, checkboxes, 'select' drop-down boxes, file input - .. And crucially, an <input type='submit' name='Login'/> if you want your form do actually do anything except look good
|
||
![]() |
@kwah | 21 August 06 |
firstly, i'll talk about the various inputs available. inputs do not function properly without the <form> </form> tags wrapped around it ..<input type='text'/> is simply a plain, ordinary text box .. <input type='password'/> is a text box, BUT when text is typed in, it appears as a series of *'s ... <input type='radio'/> radio b*ttons are just a group of options, but you can only select one option
|
||
![]() |
@kwah | 21 August 06 |
drop-down boxes are slightly more complex and require more code than all the other types of input .. a simple example showing three options to choose from : <select name='example drop-down box'> <option value='1'>option 1</option> <option value='2'>option 2</option> <option value='3'>option 3</option> </select> ... If you need any help with any html etc,please feel free to contact me at prodigits
|
||
![]() |
@kwah | 21 August 06 |
<input type='submit' name='send'/> ... This basically tells the form do whatever the <form action=' '> is .. If the action is a URL / URI, then all data in the form gets sent to that url, is processed (usually with a programming language such as CGI or Perl or PHP etc)
|
||
![]() |
@tekken05 | 25 October 06 |
can u translate this WML code to HTML code? <input type='text' name='q' value='http://'> <a href='http://wapsilon.com/viewcode.cgi?$(q)'>Go</a> ive try to make it on my own but i always get an error on $(q) attributte.i dont know how to resolve it.btw,its a sourcecode viewer . |
||
![]() |
@tekken05 | 25 October 06 |
another one is this.a WML code translate to HTML <input type='text' name='q' value=''/>
|
||
![]() |
@kwah | 27 October 06 |
<form href='$(select)'><input type='text' name='q' value '' /> </form> |
||
![]() |
@kwah | 27 October 06 |
btw, i posted all those as double quotes around the values, but have been flitered to become single quotes .. just so youre aware of that ..
|
||
![]() |
@kwah | 28 October 06 |
no, wait lol sorry man - dumb me .. you need to do tell the url what $(q) is for .. .. for example file.cgi?q=$(q) where the q= bit is important (if present in a working url?) .. sorry i didnt notice that before, but the same applies to the links i posted two msgs ago
|
||
![]() |
@madmax89 | 8 January 07 |
Can u help me to learn more about html forms?in post method how i can retrive a form information,from a page to another page of my html wapsite.. :)need ur help.
|
||
![]() |
@kwah | 9 March 07 |
sorry this is so late, but yeah ill help you learn about html forms lol .. to retrieve the data, just treat it exactly as if it was a GET variable (the only difference is that you cant see the values in the url) ..
|
||


