Hello,
For anyone else that had a problem with ^M use this function:
str_replace("\r", "", $result);
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED] 800-994-6364
www.webintellects.com
---
Is it possible, or (even better) do you have a sample script that can take a
user-submitted e-mail address, contact the host, and verify that the account exists?
Thanks,
Rob
I have a small piece of code which does the following:
1) call a function to print an html header,
2) query a database to list the users in the db,
3) print an html footer.
problem is it print out the footer before the table, even though it is
called after. looking at the html source of the page
Hi,
I have a form where the user enters some information. For a particular
section of the form, I'd like the user to be able to save what he/she
entered so that the next time they feel out the form, they can recall
without the need to retype. This is not for the entire form but only for a
few in
You've forgotten the "" in your echo...
html_header() and html_footer() put html in the right place in your page
but, like you haven't close your tag,
the footer dans be everywhere in your page (depends on the web browser
you're using)..
Regards,
P.E. Baroiller
I have a small piece of code which
Scripts that do this, if they work, usually take quite a while to process.
It's better to just send the user an email and have them respond back by
clicking on a link.
---John Holmes...
- Original Message -
From: "Robert Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday,
[snip]
I created a button called "Memorize" but how do I have the page save the
values to my MySQL database when the user clicks on the button. I
understand that I can only use JavaScript to trap the "OnClick()" function
and not PHP but I cannot use JavaScript to write to a MySQL table. I do not
Most mail servers have the verify command disabled these days, so it makes
almost impossible to validate. Blame spammers for ruining everything.
But here's a class that will attempt to do what you wish:
http://www.phpclasses.org/browse.html/package/13.html
- Original Message -
From: "Robe
Hi,
> Hi,
>
> I have a form where the user enters some information. For a particular
> section of the form, I'd like the user to be able to save what he/she
> entered so that the next time they feel out the form, they can recall
> without the need to retype. This is not for the entire form but o
Hi All
I am new in the php development world. I have made a simple mail
application using the phph mail() function.
I needed to use an attachment facility ith the mailing program...so I
have tried to use this solution called phpmailer()
from http://sourceforge.net/projects/phpmailer
I am not ab
[snip]
But how do I submit to a PHP script without moving off of the form? The
user will be entering lots of information while only a particular section
pertains to the Memorize button. If the user clicks on the button, wont it
move off of the page thereby causing the user to lose all their form
- Original Message -
From: Jay Blanchard
To: 'DonPro' ; 'php list'
Sent: Thursday, October 31, 2002 3:43 PM
Subject: RE: [PHP] Saving form input fields to MySQL br clicking on a button
[snip]
I created a button called "Memorize" but how do I have the page save the
values to my MySQL datab
I've recently found out that mysql returns blob for both blobs and text
fields. Now, how do I distinguish between the two?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Why not use the Memorize button to set a hidden field? Or just use a check
box.
Since you are going to be submitting the data anyway, save the fields at
that time depending on whether or not the check box/hidden filed is set?
> Hi,
>
> I have a form where the user enters some information. For a
Hello,
In a table, I have some fields and the primary key is an autoincrement
field. I insert an row and I'd like to recover the ID used for the last
record I inserted.
For the moment, I do a select max(Id) just after the insert but there
is, my be a best way to do it.
Thanks for your help
Chri
These two ideas, I really like. Saves me lots of coding
Thanks,
Don
- Original Message -
From: PHP List
To: php ; DonPro
Sent: Thursday, October 31, 2002 4:09 PM
Subject: Re: [PHP] Saving form input fields to MySQL br clicking on a button
Why not use the Memorize button t
DOH!
think i'll keep myself to myself from now on
On Thu, Oct 31, 2002 at 09:32:41PM +0100, BAROILLER Pierre-Emmanuel wrote:
> You've forgotten the "" in your echo...
> html_header() and html_footer() put html in the right place in your page
> but, like you haven't close your tag,
> the foo
Check out mysql_insert_id()
> For the moment, I do a select max(Id) just after the insert but there
> is, my be a best way to do it.
--
Linux: Because rebooting is for adding hardware.
Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8 BE8
signature.asc
Description: This is a digi
Signature Hosting from Verio did last time I phpinfo them(today that is)
here is the dump:
gd
GD Support enabled
GD Version 2.0 or higher
FreeType Supportenabled
FreeType Linkagewith freetype
T1Lib Support enabled
JPG Support enabled
PNG Support enabled
WBMP Su
Hi All
I am new in the php development world. I have made a simple mail
application using the phph mail() function.
I needed to use an attachment facility ith the mailing program...so I
have tried to use this solution called phpmailer()
from http://sourceforge.net/projects/phpmailer
I am not ab
I'm looking for a good class to manage forms. It doesn't need to do
anything with the form itself, I'm looking for something that does form
validation on the processing side. I've looked on phpclasses, but
everything I found was either insecure (passing data about the form
through hidden form
http://www.php.net/mailing-lists.php
there is an option to subscribe/unsubscribe
>
>Please how can I unsubscribe from this mailing list ...
>Thanks
>
>
>Regards
>Saif Yousif
>
>
> No God
>except AllahMohammed is profit of Alla
> I'm looking for a good class to manage forms. It doesn't need to do
> anything with the form itself, I'm looking for something that does form
> validation on the processing side. I've looked on phpclasses, but
> everything I found was either insecure (passing data about the form
> through h
> In a table, I have some fields and the primary key is an autoincrement
> field. I insert an row and I'd like to recover the ID used for the last
> record I inserted.
>
> For the moment, I do a select max(Id) just after the insert but there
> is, my be a best way to do it.
Stop.
Read this:
www
use mysql_insert_id(). Much more reliable when and if you use the system
with more than one person inserting at the same time.
-Original Message-
From: Christian Ista [mailto:mailing-list@;istasofts.com]
Sent: Thursday, October 31, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL>Ins
> use mysql_insert_id(). Much more reliable when and if you use the
system
> with more than one person inserting at the same time.
Sure it's for that I ask
Thanks for your help.
Christian,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to allow the user to upload pictures. What is the best way to
rename them? If I use the rename function, I have to upload the pictures to
the same place as the script and then move it. ALso, if I am not sure of
the extension, how can I simply rename it? Can I do multiple files at on
Hello,
I'd like to print the name of a variable, in order to get something like this :
THE VARIABLE tigidizougou EQUALS 12 !
from the original code below :
$tigidizougou = 12;
echo "THE VARIABLE ".(please help me right here)." EQUALS ".$tigidizougou;
Any idea ? Thanks you.
Hi!
I started to learn PHP yesterday, and I have just entered a little problem.
In my index.php file. I have this line:
wich controles the main page locaton, just like frames. It makes the files appear in
the middle of the site.
Now over to the problem:
I am making a newsscript with PHP and
Hi all
i'm having a strange problem while compiling php 4.2.3
i compiled php with these options
Configure Command './configure' '--with-mysql=/usr/local/mysql/'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-openssl=/usr/local/ssl/'
'--with-pear' '--with-gd' '--with-pqsql=/usr/local/pgsql/' '-
Your get statement is wrong:
http://maloyportalen.no/~critical/maloy/index.php?page=main2.php?id=7
use
http://maloyportalen.no/~critical/maloy/index.php?page=main2.php&id=7
You only get 1 question mark, any after will be treated as part of the
variable page.
Hi!
I started to learn PHP yesterda
Hi all:
I had tried to split the string into an array of
string using explode but the result isn't displaying
anything
I tried the example from document its its not showing
anything, pls point out where i went wrong
**
$pizaa="piece1 piece2 piece3 piece4 piece5 piece6";
$piece
Because you can't spell pizza, I bet.
On Thu, 31 Oct 2002, ppf wrote:
>
> Hi all:
> I had tried to split the string into an array of
> string using explode but the result isn't displaying
> anything
> I tried the example from document its its not showing
> anything, pls point out where i went wro
SEE: http://phpmailer.sourceforge.net/extending.html
(click Home Page then examples)
-js
Pushpinder Singh Garcha wrote:
> Hi All
>
> I am new in the php development world. I have made a simple mail
> application using the phph mail() function.
> I needed to use an attachment facility ith the m
echo ($pieces[2]);
instead of
echo ($pieces [2]);
Keith Vance
Vance Consulting LLC
www.vanceconsulting.net
(206) 355-2399
Try U.M.A. at http://uma.sourceforge.net/
On Thu, 31 Oct 2002, ppf wrote:
>
> Hi all:
> I had tried to split the string into an array of
> string using explode but the re
And that too.
Keith Vance
Vance Consulting LLC
www.vanceconsulting.net
(206) 355-2399
Try U.M.A. at http://uma.sourceforge.net/
On Thu, 31 Oct 2002, Rasmus Lerdorf wrote:
> Because you can't spell pizza, I bet.
>
> On Thu, 31 Oct 2002, ppf wrote:
>
> >
> > Hi all:
> > I had tried to split the
How could this be written better? Is there a way to do it all in 1 line?
$file = str_replace(" ", "", "$file");
$file = str_replace("'", "", "$file");
$file = str_replace("\\", "", "$file");
$file = str_replace("/", "", "$file");
$file = str_replace(":", "", "$file");
$file = str_replace("+", "",
try $file = preg_replace("/[[:punct:][:space:]]/",'',$file);
PEter
> -Original Message-
> From: rick [mailto:rick@;somers.net]
> Sent: Friday, November 01, 2002 00:22
> To: [EMAIL PROTECTED]
> Subject: [PHP] str_replace
>
>
> How could this be written better? Is there a way to do it all
Try this