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

how to retrieve from database..... this format (PRMRMDU402). firstname= prabhu, lastname=kumar, city=madurai, pincode=624402.... i want first name first two letters and last name last two letters ... city first two letters ... pin code last three letters....

2 Answers  


what are the differences between php and perl

0 Answers   TCS,


Apart from mail() function to send emails,is there any other functions in PHP to send emails?

4 Answers  


1.<?php echo'bsfjbsnmfbs'; ?> 2.<? ech'hjndfjkshf'; ?> 3 <? echo'naskfdjnask'; three programs are exected but which is beter why

3 Answers   HCL,


Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani

0 Answers  






How session manage in wordpress

1 Answers   TCS, HCL, ITBS,


what is the difference between mysql_fetch_array() and mysql_fetch_row()?

17 Answers   Google,


How can we upload a php + mysql Site

1 Answers  


hi guys..i m new to php..and want to learn it including the oops concept...can anybody send me some good programming bases exercise or a small learning project on it at nitsl_a@yahoo.co.in.I know html and going thru some of its websites.But about to go on it practically.plz advice.

1 Answers   Wipro, College School Exams Tests, Satas,


What is session and Cokkies . How it works . tell some thing about Session_id()

1 Answers   Net Solution, DVS, PVWEBCO,


How do I add to the beginning of an array and find the number of elements in it?

1 Answers   Rushmore Consultancy,


How can you "tell" MySQL server to cache a query?

2 Answers  






Categories