I am registering a number of variables. Can I combine them into one
session_register, such as session_register("one", "two" ... "n")?
Thanks
Wade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
case something was wrong. But I'm really having a hard time finding a way to
do this.
Thank you!
Wade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [
I got it! :-)
""Wade"" <[EMAIL PROTECTED]> wrote in message
9bsudp$g23$[EMAIL PROTECTED]">news:9bsudp$g23$[EMAIL PROTECTED]...
> I am submitting a form to a PHP page. I would like to check the form
> variables before I load the page, and redirect them
I wanted to say thanks to all those that have helped me. This is really a
great language and I am doing things I never thought I'd be able to do!
Now to my question:
I am doing some form validation, where I check the values entered by the
user. If the value is correct, I format the results and p
Stewart-
Thanks a great deal
It works now.
Wade
""Taylor, Stewart"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You've got some typo's
> if (my_type != "0"){ --> if ($my_type != "0&q
What's the difference between these two and is there a preference in which
one to use?
-Wade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [
.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
>
> CAA
>
> -Original Message-
> From: Wade [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 10:43 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] print and echo
>
>
> What's the difference betwee
I'm trying to do the following
But when Aname is multiple words, such as "Wade Williams", everything from
the whitespace on gets cut off.
Any ideas how to fix this?
Thanks
Wade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
I am attempting to do an ereg_replace(), but the charachter I want to
replace is a \. Any Ideas how I make the following work?
$F_name = ereg_replace ("\", "", $acc_fname);
echo $F_name;
Thanks,
Wade
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
ut of frustration. I have been sticking
dropdown menu in inc files with no troubles, but this is the first table
I've tried to stick in there. I'm trying not to ask questions here until
after trying to find an answer in PHP.net, but I've had no luck on this one.
....
?
I am sure my solution is not the most elegant, but this is what I did:
ALABAMA
?>
""Hasbullah Pit (sebol)"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have this one :-
>
>
> Penuh
> Sep
Hello,
i'm grabbing querystring data like:
www.myserver.com/foo.php?id=bar
It works like a champ on dev server using php 3 but the sys admin
use PHP 4 on the production box and the querystring is no longer being
passed.
I can't imagine this changed from version to version.
Is he missing someth
NOT put a newline on the end of a string?
Thanks in Advance,
--Noel Wade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Okay, attacking my flat-file issues from the other end:
When you use $foo = fgets($fp_file); it appears that a blank line ends up
looking exactly like a FALSE ("failed to read") return value... Is there
any way to differentiate between an empty-string read (a blank line in a
flat-file) and a FAL
> A blank line should return the newline (\n or \r\n), according to
> http://www.php.net/manual/en/function.fgets.php. Also try using '===' (3 =
> signs) as the operator, which enforces type checking on a comparison).
Yes or no:
$foo == FALSE === 0;
???
Right now I'm just doing
if($foo)
A
Hi all,
I have an issue I'm hoping there's a simple answer for (I'm betting there
is):
I have a dynamic page where the user may click on a link - this link
processes their data and shows them a "result" page...
Then I want a variable (for a manual hypertext link) that contains the
original URL t
Hi all,
So I have a page that processes information and then "echo"s out a redirect
that looks like this:
The thing is, there are some variables that I would love to pass in $_POST
or $HTTP_POST_VARS to the page referred to in "$url".
Is there any way to stuff this data into either of these gl
James -
Don't know how you're working with Cookies and sessions for sure, but the
default / "easy" way to check for an established session is to put
"session_start();" at the top of every page that's going to access the
session variables. That will check for an established/open session and make
t
Thanks - I understand that method; but I'm really looking for a way to pass
them without them being visible / mucking up the URL line with a buncha
stuff...
Take care,
--Noel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This will work perfectly! Actually, building a dynamic javascript function
and/or hidden form will allow me to collapse a couple of other redirect
systems on my site into one... Thanks a bunch!
--Noel
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED
You're missing string concatenation operators. I use "echo" instead of
"print" - but here's how it should look with either:
echo "";
Explanation: The \" makes the double-quote appear in the final HTML, then
you have to use a plain " to end the text string. Then you use the .
concatenation oper
I agree with Edwin on this one.
What's the <<< for??
Could it be you want to be doing this:
$templatestring = include("/pathto/email_template.php");
$message = "<<" tags
will be considered plain text. Put another way: Even though the "include"
statement in the main document is ALREADY between
Hi all,
So I have a session variable; but with register_globals active on the server
I'm hosted at (no way to turn it off), just checkng for "$varX" in my script
could retrieve the session variable, a GET variable with the same name, or a
POST variable with the same name - and as a security concer
Nevermind, just found the $HTTP_SESSION_VARS array...
Thanks anyways! Take care,
--Noel
"Noel Wade" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> So I have a session variable; but with register_globals active
Hi all,
So I was under the impression that an HTML form "SELECT MULTIPLE" item would
return an array with all of the selected items. This array can then be used
with any of the standard PHP array functions, yes?
I have 1 HTML page that seems to work fine... However, another page that is
nearly
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Noel Wade" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, June 14, 2003 1:26 PM
Subject: Re: [PHP] SELECT MULTIPLE form variable?
> You need to name it formfield[], not for
My favorite little gem is a shareware program called Code-Genie
(www.code-genie.com). Its cheap, fast, a "slim" app, provides tons of
useful little features, and has TOTALLY user-configurable text-coloring.
You can specify a particular coloring scheme for each file extension, so it
automatically p
Welcome, hope you enjoy PHP - its a great language!
My best suggestion is to check out the book "PHP and MySQL Web Development"
by Luke Welling and Laura Thomson - it provides you with all of the PHP &
MySQL fundamentals and good concepts for how to design something like that.
The book is aimed a
Hi All,
Quickie Question... Possibly a silly one; but it would make my life easier if it works!
I know that with a SELECT MULTIPLE, you have to use the convention: NAME="$varName[]"
to get all of the responses into a nice neat array. I'm wondering about the mechanism
behind this - is it simply
Hello All,
I am trying to use the "@" symbol to suppress errors returned by a
mysql_query call. This doesn't seem to be working as I get an new page with
the error in it in my browser. Any help with this would be greatly
appreciated.
Here is a snippet of the code I am using
$query = "se
ks for the response.
Thanks,
Preston
> -Original Message-
> From: "1LT John W. Holmes" <[EMAIL PROTECTED]>@INTERNET@HHC
> Sent: Thursday, July 25, 2002 2:53 PM
> To: Preston Wade; [EMAIL PROTECTED]
> Subject: Re: [PHP] suppressing errors
>
>
Hello All,
I am trying to use the isset function to test if the page has been
submitted, but it seems as though it is not working. I am wondering is
there a configuration option that is messing with the functionality of
isset.
Any help would be appreciated.
Thanks,
Preston Wade
--
PHP
HTML form. register_globals is off.
Thanks,
Preston
> -Original Message-
> From: "Jim lucas" <[EMAIL PROTECTED]>@INTERNET@HHC
> Sent: Tuesday, July 09, 2002 5:29 PM
> To: Preston Wade; [EMAIL PROTECTED]
> Subject: Re: [PHP] isset
>
> <
#x27;re trying to do is
>
> if($REQUEST_METHOD == "POST")
> {
> echo "Form has been submitted.";
> exit;
> }
> else
> {
> echo "Display the form that has to be submitted.':
> exit;
> }
> ?>
>
>
> "Preston Wa
This is what I was looking for.
Thanks!
Preston
> -Original Message-
> From: "Kevin Stone" <[EMAIL PROTECTED]>@INTERNET@HHC
> Sent: Tuesday, July 09, 2002 5:37 PM
> To: Preston Wade; [EMAIL PROTECTED]
> Subject: Re: [PHP] isset
>
> &l
Hi
Im getting a parse error with this:
$sqlCheckLogin = sqlExecute( "Select * from Sky where SkyUName =
'".$HTTP_POST_VARS['UserName']."'
AND SkyPasswd = '".($HTTP_POST_VARS['Password'])."'" ) ;
Help
esult ->DATEASSIGNED;
$SkyDateResult = $result ->DATEAOFRESULT;
$SkyAccNo = $result ->ACCNO;
I want to do the stuff below:
The sql qorks and the table is populated once.
Help someone?
Thanks
Wade
[EMAIL PROTECTED]
AccNo = (Here I want the value of the
checkbox)
Do I use HTTP_POST_VARS here and if so how??
Thanks
Wade Halsey
[EMAIL PROTECTED]
AccNo = (Here I want the value of the
checkbox)
Do I use HTTP_POST_VARS here and if so how??
Thanks
Wade Halsey
[EMAIL PROTECTED]
not Eof do begin
for x := 0 to fields.Count - 1 do begin
Buffer := Fields[x].AsString;
Writeln(TxFile, Buffer);
end;
next;
end;
end;//with
CloseFile(TxFile);
end;
Now I want to create the same sort of thing in Php, could someone please help!
Thanks
W
Wade
Hi
Does anyone know how to create a .zip file using php?
Thanks in advance!
Wade
what do most use, combination of cookies and GET?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
hi
im running iis5 and php 4.04
i get the following error :
PHP has encountered an Access Violation at 78003ABF
im pretty sure its a server problem, can anyone confirm this or help out? if it is a
server error how can it be fixed?
this is quite urgent
thanks
Wade
its a server problem, can anyone confirm this or help out? if it is a
server error how can it be fixed?
this is quite urgent
thanks
Wade
Wade Halsey
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Cell: 0835560990
Work: (043) 701 4226
Hi
We have been using Interbase for all our php development and have not
experienced problems. The oprational database is 4gigs and if we execute
large queries on it we recieve sub-second responses so speed is definetly
not a problem
Interbase is a good way to go if you have need for a relationa
Hi
I need to execute an sql statement a certain number of times based on a users input
/* number of times to execute
$NumCases = $HTTP_POST_VARS['txtNumCases'];
/* sql to run
$GetDetails = sqlexecute("select b.accno,b.debttype, c.surname, c.initial
,c.firstname, c.id_number, c.maidenname, c.ad
>subject = "Test";$mail->body = "Test file
sent";$mail->add_attachment($data, $filename,
$content_type);$mail ->send();
Im really stumped here, any help will be greatly
appreciated
Thanks
Wade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
is there a way to do this in a mail() ? I need to add the $Phone and $Email variables
too the $message, but I need to format it so that it is on a new line in the
emailI tried using and /n, but it formats as text not code function.
$message = $Info ."". $Phone ."". $Email;
ten as 0 bytes, the filename is the same though. If I check the file on the server
side it s perfectly ok, any ideas?
TIA
Wade
its much more than that however, I have Linux, 98, win2k and NT server on my
box..which has 2 physical hard drives and 5-6 partitions. However I
strongly suggest you read up on this subject of multi-boot. You have to take
into consideration that most operating systems require up to the first 4-8
the
beginning of uploaded file. this makes file useless on server. here is my
code for my upload page.
Upload file!
Any thoughts would be appreciated.
wade
the
beginning of uploaded file. this makes file useless on server. here is my
code for my upload page.
Upload file!
Any thoughts would be appreciated.
Wade Peacock
Webmaster
www.FamilyAlbum.ca
[EMAIL PROTECTED]
ICQ: 97998231
wadie
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To co
ks heaps :-)
swadie
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110
-Original Message-
From: Rares [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 10 May 2001 21:33
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie redirect/variable question
hey
Ahh - thanks - that's helped :-) (Line 9 was the http_referrer line)
Now the only trouble is, it seems to still treat $fred as null.
The passing line is from index.php:
test link
Should this work?
Thanks,
Steve
~~~
Steve Wade
Youth Out
Thanks - hmm - doesn't seem to do it though.
My current code is:
which gives an error msg:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in /home/swadie/public_html/redirect.php on line 6
~~
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110
-Original Message-
From: bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, 11 May 2001 0:33
To: Steve Wade
Cc: PHP News
Subject: Re: Re[2]: [PHP] Newbie redirect/variable question
Thanks - the hassle is - my isp doesn't use mysql - so i have to use text
files I reckon :-)
swadie
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110
-Original Message-
Hi all - just wondering if anyone knows of a function like fputcsv - that
is, writes a line to a csv file - opposite of fgetcsv.
Any help would be appreciated :-)
swadie
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North
v)
swadie
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, 14 May 2001 14:19
To: 'Steve Wade';
Hmm - seems clear to me that PHP *is* some form of drug - judging by the way
it seems to affect some people's lives... *grin*
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477
Any easy way to make the file pointer go up one line in a text file?
(I am thinking of using ftell(), then working out the length of the line,
and then fseek()?)
Thanks :-)
swadie
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd
Hey
How can I add a certain number of whitespace chars to a text file?
I write variables to a text file and I want to seperate them by certain numbers of
whitespace chars
eg : $var(40 whitespace)$var2(10 whitespace)
TIA
Wade
I need a function that will wait for the existence of a remote file.
Does anybody know how this could be done??
Cheers,
Wade
Hello All,
I have seen what I am trying to do on other web sites, but they were written
in client side scripting languages. This may or may not be a limitation of
server side scripting languages. What I am trying to do is dynamically
generate 2 drop down list. I want the second list to cont
this is opening home.php instead of the test include file..whats wrong?
Test
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
hp because
>that's what your link referring to, it isn't trying to include it ...
>let's hope not at least :) So perhaps currently the file holding this
>code isn't home.php when it should be.
>
>Regards,
>
>Philip
>
>
>On Wed, 21 Mar 2001, W
Hi ppl
("select empname from employer where empno = (select employercode from badclient where
pesal = '$Persal')")
Could anyone help me out with the syntax?
Im running an interbase db and php4.04
Thanks
Wade
buy Meloni's "PHP Essentials" or the "Teach yourself PHP in 24 hours" to
start. They are made for total beginners. Then move on to "Professional PHP
programming" or "PHP4 Bible". That will give you a better start.
>> ok as you got it already i am a newbie in php
>> could anyone please please po
quest );
$AccNo = $details ->ACCNO;
etc etc
It executes the correct number of times but doesnt move to the next record.Im using an
Interbase DB. Any ideas??
TIA
Wade
ugh, ok, I was without php support for a bit, ok the script works, except
that it doesnt work...it prints even when browser is IE.
-Original Message-
From: Jason Murray <[EMAIL PROTECTED]>
To: Jason Murray <[EMAIL PROTECTED]>; 'WD'
<[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED
well, this actually worked the way i had it ie. if ($HTTP_USER_AGENT =
"Mozilla") before I added the html outputs.
-Original Message-
From: Jason Murray <[EMAIL PROTECTED]>
To: Jason Murray <[EMAIL PROTECTED]>; 'WD'
<[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday
this is mostly a C++ function, java has something similar as well
but break would be the closest
-Original Message-
From: CC Zona <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, April 05, 2001 1:03 PM
Subject: Re: [PHP] IF this then, move to this line...
>
Hi
Ive got a textarea control on a form where a user will enter info, i want to enter
this info into an interbase db,ive limited the space to 200 characters in the text
area but need to now eliminate any apostrophes and other bad characters, anyone have a
function?
TIA
Wade
Hi
I need to name a file like this
$fp=fopen('echo $agentcode' .'CyberTrac.ctr', "w");
the file gets named echo $agentcodeCyberTrac.ctr, now I want a real value in
$agentcode, there is a value in there so it must be my syntax, anyone help?
TIA
Wade
I'm looking for a way to automatically ftp a tab-delimited text file from a
private ftp location and update my Mysql table every 24 hours. I don't have
root access to the php/mysql server. Anyone have an idea?
Thanks,
Wade Berlin, Backstreet Production
So how do you know what to charge when youre independent and just starting?
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
stern time again?
Thanks,
Wade
--
If you have a VCR or MP3 player, you need to read these links:
http://www.digitalconsumer.org/
http://digitalspeech.org/
http://www.libertyboard.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 13 Aug 2002, Rasmus Lerdorf wrote:
> Fix your Apache startup environment so TZ is set correctly.
I've got this in the apache startup script, but it's still on GMT:
bash-2.05a# head /usr/local/etc/rc.d/apache.sh
#!/bin/sh
TZ="EST5EDT"; export TZ
case "$1" in
start)
[ -x /usr/l
page.
So, can I change all of the pg_connect calls to pg_pconnect call and have
the pages use persistent connections, or is there something more that
needs to be done?
- --Wade
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnup
idea on how to split after a certain number of
words?
Thanks,
Wade
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6cIdgX5y4ZKLK2pMRAjOoAJ0RD43TCH7yVTLKhVjtsJ2mr/ZLMgCgmcz0
QHiQipt8ngHq7dnVdiQeHXY=
=PwwQ
-END PGP SIGNATURE---
That's incorrect, at least under PHP4. I've got the following file that
does the phpinfo stuff perfectly:
BEGIN FILE
END FILE
On Fri, 26 Jan 2001, John Guynn wrote:
> Actually what you need is otherwise you're never
> going to get anything on the screen.
>
> John Guynn
>
> This ema
84 matches
Mail list logo