RE: [PHP] Which is better??
| From: | Jonathan Sharp | Date: | Fri, 06 Apr 2001 21:14:52 +0000 |
| Subject: | RE: [PHP] Which is better?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47505@lists.php.net to get a copy of this message | ||
> My forms page is named "submit.phtml"
> <form action="submit.phtml" method="post">
and if you use the <? echo $PHP_SELF; ?> then you don't even need to wory
about the file name, as it will always submit to itself...
<form action="<? echo $PHP_SELF; ?>" method="POST">
-js
> -----Original Message-----
> From: Curtis [mailto:curtis_c@bellsouth.net]
> Sent: Friday, April 06, 2001 9:27 AM
> To: php
> Subject: [PHP] Which is better??
>
>
> Hello,
>
> I am wondering witch way is that best to go with my forms..
>
> Self Referenceing or have the data sent to another page for the
> processing.
>
> i.e.
> (option one)
> My forms page is named "submit.phtml"
> <form action="submit.phtml" method="post">
>
> OR
> (option two)
> My forms page name is "enterdata.phtml"
> <form action="submit.phtml" method="post">
>
> and it uses another page to submit the data.
> that displays "DATA SUBMITTED"
>
> Make sense?
>
> The reason I ask is that I am having problems making a field REQUIRED
> with option one.
> But all of my forms are set up that way.
>
> Thanks for any input.
>
> Curtis
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
>