pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Forms and PHP
3+ messages / 3 participants
[nested] [flat]

* Forms and PHP
@ 2001-03-21 21:21  Paul Joseph McGee <mcgee@student.cs.ucc.ie>
  0 siblings, 1 reply; 3+ messages in thread

From: Paul Joseph McGee @ 2001-03-21 21:21 UTC (permalink / raw)
  To: pgsql-php

hi everybody,
could someone please tell me if i can do the following, because basically
its not working for me at the moment.
i have a php script where i access my database and get some variables eg.
$currentBid. outside the script i have a form and i want to validate the
form using what was inputted into the form and $currentBid. so for
examlple
<?
....
$currentBid=...
?>
<FORM ACTION="bidNow.php" METHOD="post" onSubmit="return 
checkBid(price,$currentBid)";>
....

can i do this. well obviously not but u know what i mean!
Thanks
Paul



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Forms and PHP
@ 2001-03-21 21:30  Martin A. Marques <martin@math.unl.edu.ar>
  parent: Paul Joseph McGee <mcgee@student.cs.ucc.ie>
  0 siblings, 1 reply; 3+ messages in thread

From: Martin A. Marques @ 2001-03-21 21:30 UTC (permalink / raw)
  To: Paul Joseph McGee <mcgee@student.cs.ucc.ie>; pgsql-php

El Mié 21 Mar 2001 18:21, Paul Joseph McGee escribió:
> hi everybody,
> could someone please tell me if i can do the following, because basically
> its not working for me at the moment.
> i have a php script where i access my database and get some variables eg.
> $currentBid. outside the script i have a form and i want to validate the
> form using what was inputted into the form and $currentBid. so for
> examlple
> <?
> ....
> $currentBid=...
> ?>
> <FORM ACTION="bidNow.php" METHOD="post" onSubmit="return
> checkBid(price,$currentBid)";>
> ....
>
> can i do this. well obviously not but u know what i mean!

Why don't you just do the check at the begining of bidNow.php?

Saludos... :-)

-- 
System Administration: It's a dirty job, 
but someone told me I had to do it.
-----------------------------------------------------------------
Martín Marqués			email: 	martin@math.unl.edu.ar
Santa Fe - Argentina		http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Forms and PHP
@ 2001-03-21 21:47  Adam Lang <aalang@rutgersinsurance.com>
  parent: Martin A. Marques <martin@math.unl.edu.ar>
  0 siblings, 0 replies; 3+ messages in thread

From: Adam Lang @ 2001-03-21 21:47 UTC (permalink / raw)
  To: pgsql-php

I agree.  Plus, you can run a php function/use variables unless you are
inside php tags (<??>).  The only way to do it like you have is to have the
checkbid function be javascript, but you would still need to echo the
javascript so as to transfer the php variable to an actual value.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Martin A. Marques" <martin@math.unl.edu.ar>
To: "Paul Joseph McGee" <mcgee@student.cs.ucc.ie>;
<pgsql-php@postgresql.org>
Sent: Wednesday, March 21, 2001 4:30 PM
Subject: Re: [PHP] Forms and PHP

> Why don't you just do the check at the begining of bidNow.php?





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-03-21 21:47 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-21 21:21 Forms and PHP Paul Joseph McGee <mcgee@student.cs.ucc.ie>
2001-03-21 21:30 ` Martin A. Marques <martin@math.unl.edu.ar>
2001-03-21 21:47   ` Adam Lang <aalang@rutgersinsurance.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox