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 4 No



Post New Answer



More PHP Interview Questions

What are the reasons for selecting lamp (linux, apache, mysql, PHP) instead of combination of other software programmes, servers and operating systems?

3 Answers  


If anybody integrate "First Data Global Payment Gateway" in your site?

2 Answers  


<?php /** * @version 1.0 $ * @package HelloWorld * @copyright (C) 2005 Andrew Eddie * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?> <?php $database =& JFactory::getDBO(); //$sql = 'SELECT name, username FROM #__users'; $sql="select a.id, a.title, a.introtext, a.created_by, a.created from jos_content a, jos_content_frontpage b where a.id=b.content_id and b.ordering='2'"; $database->setQuery( $sql ); $user = NULL; $user = $database->loadObject(); //echo 'Name: ' . $user->name . '<br />'; echo '<h1>' . $user->title . '</h1><br />'; //echo 'Username: ' . $user->username; echo ' ' . $user->introtext; i write this and fetch the result from the database the result is The Intranet is up and working ! Our intranet is up and working and should be accessible from both Mumbai and NOIDA. As you will notice, this template, look & feel is not in line with our corporate indentity but we chose the route of "form-follows-funtion" In the first phase, we are rolling out functionality that is critical to all of us - Policies and How-to documents. In subsequent phases, we will be launching other features. Keep watching this space for more details i want to see only 4 line of top then how this may done

0 Answers   Infovision,


what is nl2br?

4 Answers  


Hi, My Name is Ajay Jha. What My Question is I am Percuing in Bca. It's My 5th Semester. I Want To Make My Carrear as a web designer that's Why i wants to do Php, Is it right Desision for Me ?

1 Answers  






Would you initialize your strings with single quotes or double quotes?

4 Answers  


what is code for email sending through localhost pc..?

2 Answers  


How can we know the count/number of elements of an array?

1 Answers  


what is constructor

0 Answers  


How do you register one session ?

4 Answers  


what is interface in java.

4 Answers  


when you will get the message/error "headers already sent"?

5 Answers  






Categories