Is it possible to to have a PHP form without having a seperate file,
e.g. Normal Form
<form action="send.php" method="post">
But instead of calling send.php
have the code held in send.php
in the same file as the form?
Is it possible to to have a PHP form without having a seperate file,
e.g. Normal Form
<form action="send.php" method="post">
But instead of calling send.php
have the code held in send.php
in the same file as the form?
Sure, just supply the action
attribute with an empty action
<form action="" method="post">
or with a $PHP_SELF
call.
<form action="<?php echo $PHP_SELF;?>" method="post">
Both will submit to the current page.