php-general Digest 20 Jun 2009 23:31:30 -0000 Issue 6186
Topics (messages 294363 through 294373):
Re: Calendar
294363 by: tedd
Re: Multi-Sort -- how to do this?
294364 by: tedd
Re: isset question
294365 by: Reese
294366 by: Gary
resubmit form after validation error
294367 by: PJ
294370 by: Caner BULUT
PHP Mail Function
294368 by: Julian Muscat Doublesin
Re: redirect to a static page
294369 by: O. Lavell
Users Online?
294371 by: Chris Payne
294372 by: Michael A. Peters
Re: [PHP-DEV] PHP 5.3.0RC4
294373 by: Johannes Schlüter
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
At 7:58 PM +0100 6/19/09, Ashley Sheridan wrote:
On Fri, 2009-06-19 at 15:30 +0530, Sudheer Satyanarayana wrote:
salmarayan wrote:
> Does Any body please have the code of A Java Script Calendar
that works with
> a PHP Html Form..
> if yes can you please send it as i have one but does not work that
> Efficiently.
>
> Thanks in advance
>
This might help if you are looking for a date picker
http://techchorus.net/add-cool-date-picker-2-lines-javascript
--
With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff:
http://techchorus.net, Personal: http://sudheer.net
I've always used Tigra calendar, and it's been very flexible for me for
a lot of sites. Don't know whether or not it is still maintained, as I
keep using the same source I picked up a couple of years back! If you
have trouble finding it, give me a shout.
Thanks
Ash
Ash et al:
I like to roll and maintain my own. While it's not javascript, it works.
http://webbytedd.com/bbbb/tedd-php-calendar/ <-- code is there
And it's fairly easy to hook up to a database, such as seen here:
http://php1.net/my-php-calendar/
The original code for the db version can be found in the php-calendar
(http://php-calendar.com).
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
At 3:36 PM -0400 6/18/09, Robert Cummings wrote:
tedd wrote:
At 1:45 PM -0400 6/18/09, Robert Cummings wrote:
Thanks to Rob and Daniel for also playing, better luck next time.
:-) <- note smiley -- I do appreciate your time.
Mine version retains key associations. It wasn't a complete waste of time.
Cheers,
Rob.
Rob:
Nothing you provide me is a complete waste of time -- see here:
http://www.webbytedd.com/bbbb/multisort-rob/
Many thanks for your code.
I meant to have a smiley at the end of it. I don't mind doing it,
even thought he solution existed for multisort, thinking through the
process is invaluable :)
Cheers,
Rob.
Rob:
Understood -- but just as well -- I don't pass up on any tidbits you
provide even if I don't fully understand them (i.e., your push/pull
example). And no I don't need an explanation, that understanding will
come in time. It akin to fully understanding OOP. If you understand
it the first time your exposed to it, you're lucky. After a few more
exposures, you finally get it and wonder what the confusion was
about. It just takes time.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
Waynn Lue wrote:
I notice that you're checking $_POST['mort'] but you're echoing $mort,
is that your actual code?
That was my observation as well. Is $mort = $POST['mort']; being
set somewhere else or not? If not, how is your script supposed to
know what value $mort should be?
And, what the other guys said. Gary, before you do anything with
submitted data you need to process it against strip_tags() and/or
htmlentities() at the very least, mysql_real_escape_string() if
the data goes to a db.
Reese
--
On 6/18/09, Gary <[email protected]> wrote:
I have a form that gives the submitter a choice or either one set of
questions, or another. I am still getting the message even if the input was
left blank. So on the line below,
$msg.= isset($_POST['mort']) ? "The mortgage amount is $mort\n" : " ";
--- End Message ---
--- Begin Message ---
Yes... I echo the code onto the page as well as sending out the message.
The echo is sort of a "thank you" page, this is what you submitted. A
message, which is not going into a DB, is also emailed to the submitter and
cleint.
Gary
"Waynn Lue" <[email protected]> wrote in message
news:[email protected]...
>I notice that you're checking $_POST['mort'] but you're echoing $mort,
> is that your actual code?
>
> On 6/18/09, Gary <[email protected]> wrote:
>> I have a form that gives the submitter a choice or either one set of
>> questions, or another. I am still getting the message even if the input
>> was
>> left blank. So on the line below,
>>
>> $msg.= isset($_POST['mort']) ? "The mortgage amount is $mort\n" : " ";
>>
>> I get
>>
>> The mortgage amount is
>>
>> What am I missing here?
>>
>> Thanks
>>
>> Gary
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
--- End Message ---
--- Begin Message ---
I'm having a bit of a time figuring out how to resubmit a form after
obligatory field missing error.
The problem is that the page is accessed from a search page href where
the uri is like = file.php$=123.
Since the method="post" action="file.php?=<?php echo $number; ?> does
not work nor does PHP_SELF, I have set the action="otherfile.php". All
is well, if all fields are properly entered, but if there is an error,
how to resubmit the form for correction and resubmission without using
js or functions or redoing it all from scratch?
--
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-------------------------------------------------------------
Phil Jourdan --- [email protected]
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php
--- End Message ---
--- Begin Message ---
Hi,
You can use a variable to that. Like following. Example if the variable is 1
you start to processing form input.
Example
<form method="post" action="file.php?action=1>
And in file.php you check the action variable if it is 1 you can start the
processing data.
If($_GET['action']==1) {
Echo "done";
}
Thanks.
Caner.
-----Original Message-----
From: PJ [mailto:[email protected]]
Sent: 20 June 2009 22:55
To: [email protected]
Subject: [PHP] resubmit form after validation error
I'm having a bit of a time figuring out how to resubmit a form after
obligatory field missing error.
The problem is that the page is accessed from a search page href where
the uri is like = file.php$=123.
Since the method="post" action="file.php?=<?php echo $number; ?> does
not work nor does PHP_SELF, I have set the action="otherfile.php". All
is well, if all fields are properly entered, but if there is an error,
how to resubmit the form for correction and resubmission without using
js or functions or redoing it all from scratch?
--
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-------------------------------------------------------------
Phil Jourdan --- [email protected]
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello Everyone,
I have written an e-mail function that sends e-mail to my domain that
forwards it to a gmail account.
When I use the gmail address directly it works fine. When I use my mail
domain i don't get anything.
Has anyone experienced this? Can anyone give me some advice?
Thanks in advance
Julian
--- End Message ---
--- Begin Message ---
Vit wrote:
> Hi all,
>
> I'm trying to understand how to redirect to a static page....
>
> here you are the code (it seem to be a stupid code, but I'm just
> debugging.....
>
> <?php
>
> header( "Location: http://www.google.com" );
> ?>
>
> instead of being redirect to www.google,com, I get the following error:
>
> Warning: Cannot modify header information - headers already sent by
>
> what can be??? how can I solve it??
The header needs to be the very first output your script sends out. No
other output may come before it. This is clearly discussed in the manual
at <http://www.php.net/header>.
--- End Message ---
--- Begin Message ---
Hi everyone,
I have a login system that allows a user to login to my control panel,
is there an easy way so that I can tell how many users / what users
are logged into my system? What would I need to do to add this with
the minimum of hassle? Would I just have to look at the sessions that
are currently active and if so, how? I really want to add this
feature as it will help with creating a messaging system.
It might be simple but if you've never done it before it's the hardest
thing in the world :-)
Thank you
Chris
--- End Message ---
--- Begin Message ---
Chris Payne wrote:
Hi everyone,
I have a login system that allows a user to login to my control panel,
is there an easy way so that I can tell how many users / what users
are logged into my system?
I assume there is since many community applications (IE bulletin boards)
show logged in users.
It's probably easiest if you use a database for session handling, but
you can probably do it it other ways as well.
--- End Message ---
--- Begin Message ---
Hi,
On Fri, 2009-06-19 at 12:13 +0200, Uwe Schindler wrote:
> /pangaea/install/php-5.3.0RC4/ext/pdo_mysql/mysql_statement.c: In function
> `pdo_mysql_stmt_dtor':
>
> /pangaea/install/php-5.3.0RC4/ext/pdo_mysql/mysql_statement.c:52: error:
> structure has no member named `stmt'
Which MySQL client libraries are you using? Looks like 4.0 or older.
I'll check whether I can fix those, while MySQL 4.1 was released in 2004
and MySQL's active support for 4.0 ended 2006, which means it's rather
old software...
johannes
--- End Message ---