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

hi abinashg i think u have experience in php plz tell me more about php now i raearlly want to do php wat is the future.my email id atul_saini2@yahoo.co.in.plz guide me thanks...........

2 Answers  


Difference between mysql_connect and mysql_pconnect in php?

2 Answers  


•How to access crystal reports through PHP code?

1 Answers   Satyam,


what is the importence of session.save_path in Php.ini file and wht changes u've to made before using sesssions in ur php program first time?

4 Answers  


How can I embed a java programme in PHP file and what changes have to be done in PHP.ini file?

1 Answers   Sify, Small Biz Express,






i want to need upload above 100mb file,i was successfully upload 75mb using .htaccess file ,but i can put 101mb file,it was not upload..please give some tips..local server its work perfectly but online it doesn't work.. .htaccess file details AddHandler application/x-httpd-php .php php_value post_max_size 200M php_value upload_max_filesize 200M php_value memory_limit 300M php_value output_buffering on php_value max_execution_time 259200 php_value max_input_time 259200 php_value session.cookie_lifetime 0 php_value session.gc_maxlifetime 259200 php_value default_socket_timeout 259200

1 Answers  


how to upload a file in php.write a syntex for that

1 Answers   Net Solution,


Why using the htaccess file

2 Answers  


how to add file in php?

1 Answers   CTS,


does current version of mysql (myisam) supports foreign keys ?

2 Answers  


What are Sub routines?

1 Answers  


Specify array sort functions available in php ?

3 Answers  






Categories