You can embed a music file into your page using the following HTML code:
<embed name="lostmojo"
src="/your url, web_design/lostmojo.wav"
width="300"
height="90"
loop="false"
autostart="false">
</embed>
How to embed an audio file
Sunday, November 22, 2009Posted by Mr. BlOgS at 11:32 PM 22 comments
Labels: Tips danTriks
How to create form fields
Usually when a user submits the form, you need the system to do something with the data. This is where the action page comes in. The action page is the page that the form is submitted to. This page could contain advanced scripts or programming that inserts the form data into a database or emails an administrator etc.
Creating an action page is outside the scope of this tutorial. In any case, many web hosts provide scripts that can be used for action page functionality, such as emailing the webmaster whenever the form has been completed. For now, we will simply look at how to submit the form to the action page.
You nominate an action page with the action attribute.
Example HTML Code:
<form action="/html/tags/html_form_tag_action.cfm" method="get">
First name:
<input type="text" name="first_name" value="" maxlength="100" />
<br />
Last name:
<input type="text" name="last_name" value="" maxlength="100" />
<input type="submit" value="Submit" />
</form>
This results in:
Posted by Mr. BlOgS at 11:12 PM 2 comments
Labels: Tips danTriks
Select Lists
A select list is a dropdown list with options. This allows the user to select one option from a list of pre-defined options.
The select list is created using the select in conjunction with the option tag.
<select>
<option value ="sydney">Sydney</option>
<option value ="melbourne">Melbourne</option>
<option value ="cromwell">Cromwell</option>
<option value ="queenstown">Queenstown</option>
</select>
This results in:
Posted by Mr. BlOgS at 11:03 PM 1 comments
Labels: Tips danTriks
Submit
The submit button allows the user to actually submit the form.
<input type="submit" />
This results in:
Posted by Mr. BlOgS at 11:01 PM 73 comments
Labels: Tips danTriks