RE: Datetime help in an INSERT...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	I just responded to a separate but similar suggestion.  The form
elements, including the buttons, are all generated in a separate function.
I am currently passing about 5 variables into this function and I am a
little hesitant to pass any others.  I am not sure about complexity,
performance, etc. in passing so many variables into a function.  Please let
me know if anyone has any ideas on this.  I doubt that this is happening,
but I would really like for the code to be as easily maintainable as
possible.

-----Original Message-----
From: jay@advmed.com [mailto:jay@advmed.com]
Sent: Thursday, June 05, 2003 9:48 AM
To: NIPP, SCOTT V (SBCSI)
Subject: RE:  Datetime help in an INSERT...


a button is being pressed?
so it is processing a form?
if its in a form just pass along the value of $td via hidden input data...

<input type="hidden" name="td" value="<? echo $td; ?>">

jay merritt
jay@advmed.com
jaycell@advmed.com


> 	OK.  I guess the next question would be what is the best option for
> performance?  This portion of the app currently doesn't have any session
> functionality built in.  I would be setting up the session for this sole
> purpose.  I haven't worked with cookies yet.  I suppose the URL method
might
> work, I have just never like it because I think it looks unclean, just
> personal preference there.
> 	As to the $td question...  This is a variable that holds the userid
> of the "Technical Director" who is the account approver.  This portion of
> the app is simply an approval mechanism to an account request system that
I
> am developing.  The "TD" receives an e-mail with a link back to the
approval
> page to approve the requested accounts.  This approval then fires off an
> e-mail to the SA responsible for user accounts to inform him to create the
> newly approved account.
> 	Well, thanks again for the feedback.  Hopefully I can get this going
> pretty quick.  We are currently planning on rolling this app out to our
user
> community on Monday.  This is the last issue I have that I am aware of.
> 
> -----Original Message-----
> From: CPT John W. Holmes [mailto:holmes072000@charter.net]
> Sent: Thursday, June 05, 2003 9:06 AM
> To: NIPP, SCOTT V (SBCSI); jay@advmed.com
> Cc: php-db@lists.php.net
> Subject: Re:  Datetime help in an INSERT...
> 
> 
> > I have actually discovered that the $td value is blank.  The reason
> > appears to be that the page is reloading when a button is pushed, and
that
> > is when the $td value is being lost.  My question now is, how do I keep
> the
> > $td value after the page is reloaded?  I would rather keep the value
from
> > the original query than perform another database query to populate this
> > value yet again.  Thanks yet again for the help.
> 
> Stick it in the session? cookie? URL? What is $td?
> 
> ---John Holmes...
> 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux