Form target attribute, PHP Web Programming

Assignment Help:

Corresponds to the FORM TARGET attribute.

• Text - It is an object representing a text field.

• Text area - It is an object representing a text area field. Some of the Form Element Properties are:

• Name - It provides access to an element's name attribute. It applies to all of the form elements.

• Type - it is for identifies the object's type. It applies to every form elements.

• Value - it is for identifies object's value. It applies to all checkbox, hidden, button radio, submit, password, reset, text or textarea.

• Checked - This is for identifies whether the element is checked. It applies to checkbox & radio only.

• Default checked - This is for identifies whether the element is checked by default. This applies to checkbox & radio only.

• Default value - it is for identifies the object's default value. It applies to submit, password and textarea.

• Length - This is for identifies the length of a select list. This applies to select.                                             

• Options - An array which identifies the options supported by the select list. It applies to select.

Syntax : <FORM Name = "myform" Action = "mailto:[email protected]" Method               

= POST Ectype = "multipart/form-data" on submit = "return check ( )" >                                  

<HTML>                                                                                                                                           

<HEAD>

<SCRIPT LANGUAGE = "javascript">                                                                                         

function check ()                                                                                                                               

{ if (document.myform.email.value  == "") {

alert("please enter your email-id");                                                                       

return false; }                                                                                                         

}                                                                                                                                            

</SCRIPT>                                                                                                                                       

</HEAD>                                                                                                                                           

<BODY>                                                                                                                                          

Enter your Email to subscribe : <p>                                                                                                

<FORM Name = "myform" Action = "mailto:[email protected]" Method = POST

Enctype = "multipart/form-data" onsubmit = "return check()" >                                                   

<Input type = "text" Name = "email">                                                                              

<Input type = "submit" value = "submit">                                                                        

</FORM>                                                                                                                                         

</BODY>                                                                                                                                          

</HTML>                                                                                                                                         

 

The above code is utilized for obtaining the user's email-id. In case the user clicks on to the submit button without entering the email-id in the wanted text field, he sees a message box represent ting that the email-id has not been entered.


Related Discussions:- Form target attribute

Need help to modify phpmelody template, Modify phpmelody template We hav...

Modify phpmelody template We have a video hosting site that uses the phpmelody backend as well as we would like someone with experience in that software to alter the template to

Want a simple html form having pagedown plugin, Need a simple html form hav...

Need a simple html form having pagedown plugin I want an html form having pagedown plugin in it. There must be submit button on the form which when pressed take submits the edit

Web development for art website, Web development for company We need to ...

Web development for company We need to build a website for a start-up company doing event planning relating to fashion and arts. In this website we would like to have the follow

Need help in html5 web development, Need help in HTML5 Web development I...

Need help in HTML5 Web development I will want a web developer to 1) Create an interactive html5 page like the drag as well as throw feature in this website. The images ar

I desire a php developer, I desire a PHP Developer I desire for someone ...

I desire a PHP Developer I desire for someone to take a look at php code that was previously used in a registration form on an older html site. The site has been re-designed and

We need help to migrate wordpress website from one domain, We need help to ...

We need help to migrate Wordpress Website from One Domain to 25 Subdomains Wordpress programmer will be assignment with developing a tailored template for ease of use, interacti

Unordered lists, First one, we will create an unordered list. These lists a...

First one, we will create an unordered list. These lists are also called as bulleted lists. These lists are characterized through list items that do not have numbers. They are used

Need help in house rental tracking hosted web gui and db, House Rental trac...

House Rental tracking Hosted Web GUI and DB Want a web interface program to track short term rentals of multiple vacation properties. Most information wants to be scraped twice

Test links in dreamweaver, In Dreamweaver you cannot test your links; you s...

In Dreamweaver you cannot test your links; you should check your links in a browser to make sure the pages operate as you expect. 1. Press F12 to preview the page in a brow

Need help in wordpress site with e-commerce integration, WordPress Site wit...

WordPress Site with E-Commerce Integration We want development of a site in Word Press. We will offer the designs and the content. We will want you to set up the site and conver

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd