Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

simple form action

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

simple form action

Postby achille84 » Fri Jan 27, 2012 6:17 am

hi

i have a form like


<form id="was'" action="./" method="post">



where does this form posts data with ./


thanks
achille84
New php-forum User
New php-forum User
 
Posts: 5
Joined: Mon Jan 16, 2012 6:43 am

Re: simple form action

Postby egami » Fri Jan 27, 2012 9:02 am

to the default document, but I would remove the / and just use the period.
ie..

index.php
index.html
default.htm
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: simple form action

Postby hav0c » Thu Mar 15, 2012 8:10 am

<form action="home.php" method="post">

and on home.php
<?php
$value1 =$_POST["____"];
?>
hav0c
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu Mar 15, 2012 7:37 am

Re: simple form action

Postby Nicknnick » Tue Apr 30, 2013 5:00 pm

The action attribute specifies where to send the form-data when a form is submitted.
Nicknnick
New php-forum User
New php-forum User
 
Posts: 8
Joined: Tue Apr 30, 2013 3:31 pm


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.