Shaun wrote:
Hi,
How can I check if a form has been submitted, I have seen a demo that uses
the following:
if(isset($HTTP_POST_VARS))
But I understand that $HTTP_POST_VARS is depricated...
Depricated or backward compatible, depends on your view. The "hot new
way" is to use $_POST superglobal array
Shaun wrote --- napĂsal::
"Matt M." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
another button to the form that utilises my JavaScript popup function
and
takes the values from the same form?
This is not a php question.
All you need to do is loop through the form fields on you page a
> Thanks for your reply, the problem here is that if I loop through the values
> and them to the URL when the other button is pressed to submit the form the
> form action will still kink to itself rather than opening a new popup
> window...
that should stop form submission if they click your but
"Matt M." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > another button to the form that utilises my JavaScript popup function
and
> > takes the values from the same form?
>
> This is not a php question.
>
> All you need to do is loop through the form fields on you page and add
>
> another button to the form that utilises my JavaScript popup function and
> takes the values from the same form?
This is not a php question.
All you need to do is loop through the form fields on you page and add
them to the end of your url.
--
PHP General Mailing List (http://www.php.net/)
> The buttons can go anywhere inside the tags. Since this is a
PHP
> list, though, you should really be asking is how would this form best
work
> with PHP to perform each desired action?
>
> ---John Holmes...
Yeah, John, you're right. I should have made it more PHP related.
Figured I could get
From: "Aaron Wolski" <[EMAIL PROTECTED]>
> Within the tags I have my buttons - Publish, Unpublish,
> New, Edit and Delete.
>
> Next I have a table of that displays a list of records from a database
> with a checkbox to select a particular record.
>
> Once a record has been "selected" they click o
You can initiate a POST from within your script using cURL, assuming your
php installation has cURL support enabled. Check http://www.php.net/curl
for details.
mh.
On Mon, 10 Mar 2003, Doug Parker wrote:
> I'm sending information to be processed by a third party site. I need
> to store the inp
Navid,
$SCRIPT_NAME is sometimes a safer alternative than $PHP_SELF.
The difference is that $PHP_SELF includes $PATH_INFO while $SCRIPT_NAME is
just the name of the actual script running.
http://www.php.net/manual/en/language.variables.predefined.php
This becomes particularly important if you u
quot;;
}
".$error['username'];?>
".$error['password'];?>
Am I assigning errors to the array incorrectly?
Thanks for your help :)
Jason
> -Original Message-
> From: Jason G. [mailto:[EMAIL PROTECTED]]
> Sent: February 18, 2002 9:19 AM
> To
hanks...
Navid
-Original Message-
From: George Whiffen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 7:09 AM
To: Navid Yar
Subject: Re: [PHP] form submission error trapping
Navid,
$SCRIPT_NAME is sometimes a safer alternative than $PHP_SELF.
The difference is that $PHP_SELF includes $
Why do not you all just put all your PHP logic, db access, etc at the TOP
of the script. Once you have your results and variables created, then
start into html.
This method produces MUCH cleaner scripts, and there is a very minimal
amount of PHP interspersed within the HTML. Also, you have ti
I think that mixing of html and php is too complex and leads to hard to
maintain scripts. I find it extremely difficult to understand a scripts
logic when it's spread out over hundreds of lines of php/html.
I use EasyTemplates that came in Web Applications Development with PHP 4.0
by Tobias Ratsc
to fill in this field\n"; }
echo "";
etc.
> -Original Message-
> From: Jason Dulberg [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, February 17, 2002 23:40
> To: Martin Towell
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] form submission error trapping
Simply, to send a form to itself, you can use a special variable called
$PHP_SELF. Here's an example of how to use it:
if ($somevalue) {
header("Location: $PHP_SELF");
} else {
execute some other code...
}
Here, if $somevalue holds true, it will call itself and reload the same
script/file.
Yeah, for buttons (radio/checkboxes) I had to put an if statement on
each one:
>
unformatted
>
You're right... it's not as easy.
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To un
2002 10:40 AM
To: Martin Towell
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] form submission error trapping
Thanks for the code Is there a way to keep track of what fields had the
errors as its possible for people to have like 5 errors?
Thanks again.
Jason
-Original Message-
From: M
> I guess the real challenge is converting a pre-existing page like the
> one I've described into one that can re-populate itself on an error
> condition. Building it that way from scratch is merely a programming
> task.
That's true, however there are a few ways to cheat :). For example, in
RE: [PHP] form submission error trappingThanks for the code Is there a
way to keep track of what fields had the errors as its possible for people
to have like 5 errors?
Thanks again.
Jason
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: February 17
> > -Original Message-
> > From: Steven Walker [mailto:[EMAIL PROTECTED]]
> >
> > I created one php page that both displays the form and validates the
> > input. When the user hits the submit button, it submits the data to
> > itself. If anything is missing from the page, the form is r
something like:
not tested but should work - just expand on it
Martin
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 10:22 AM
To: Steven Walker
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] form submission error
; -Original Message-
> From: Steven Walker [mailto:[EMAIL PROTECTED]]
> Sent: February 17, 2002 6:18 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] form submission error trapping
>
>
> Jason,
>
> I just finished one of my form pages, a
Jason,
I just finished one of my form pages, and I'm really happy with how it
turned out.
I created one php page that both displays the form and validates the
input. When the user hits the submit button, it submits the data to
itself. If anything is missing from the page, the form is reshown
submit back to the same page - or include that page
Martin
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 9:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] form submission error trapping
I am working on some error trapping for several forms
24 matches
Mail list logo