what are the differents between 'action' and 'target' in
form tag?




Answers were Sorted based on User's Feedback



what are the differents between 'action' and 'target' in form tag?..

Answer / ram

Action:
Action attribute specifies where to send the form-data when
a form is submitted.
Syntax: <form action=”value”);
Example: <form name="email_check" method="post"
action="formValidation.php">
Target:
The target attribute specifies where to open the action URL.
Syntax: <form target="value">
Value:
_blank – open in new window
_self- Open in the same frame as it was clicked
_parent- Open in the parent frameset
_top- Open in the full body of the window
Framename- Open in a named frame

Is This Answer Correct ?    14 Yes 0 No

what are the differents between 'action' and 'target' in form tag?..

Answer / sherin

action means the url to be executed when the form submits .
If the form is to be submited through iframe the target tag
specifies the name of the iframe .

Is This Answer Correct ?    9 Yes 0 No

what are the differents between 'action' and 'target' in form tag?..

Answer / sujendra kumar

<form action="target"> ... </form>
ACTION attribute. This is a required attribute. This
attribute specifies where the data collected by the form is
to be sent. The destination could be an email address, e.g.,
action="mailto:BillG@lunix.net"; a URL, e.g.,
action="../index.htm"; a CGI script on your web server,
e.g., action="/cgi-sys/formmail.pl"; or an Active Server
page that will process the data, e.g.,
action="mysearch.asp", to name a few possibilities. This is
the one truly complicated issue concerning forms, and will
be addressed below in its own section.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer



More PHP Interview Questions

What is a class in php programing?

0 Answers  


What can I do by cakePHP?

4 Answers  


Extract url from this string? It should be flexible for all strings, not for this string only. "yahoo.comyahoo.co.inhotmail.org"

1 Answers   A1 Technology,


what is "mysql_pconnect", i know mysql_connect but what it is pconnect is their?

2 Answers  


What is a procedure in php?

5 Answers   Wipro,






What type of headers have to add in the mail function in which file a attached?

2 Answers  


delete session variable when close browser with out logout

3 Answers  


Specify array sort functions available in php ?

3 Answers  


how to work lamp server

0 Answers  


Is there a way to encrypt text from php?

5 Answers  


How session works (internal processing of session) ?

3 Answers   ASD Lab, IPSR Solutions,


when we select some checkboxes and we went for next page if we came back to prevoius page the selcted checkboxe should be checked

2 Answers  






Categories