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
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
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,
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
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 formfield.
Noel Wade wrote:
Hi all,
So I was under
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
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 on the
server
I'm hosted at
You're missing string concatenation operators. I use echo instead of
print - but here's how it should look with either:
echo SELECT NAME=\.$vari[$i][$j].\;
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
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 = HTMLMESSAGE.$templatestring.HTMLMESSAGE;
??
When you include() a file with PHP, it DOES parse the included file
(although in the included
Hi all,
So I have a page that processes information and then echos out a redirect
that looks like this:
META HTTP-EQUIV=REFRESH CONTENT=4; URL=? echo $url ?;
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
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
the
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
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
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)
And
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
Hello,
i'm grabbing querystring data like:
www.myserver.com/foo.php?id=bar
?
echo $id;
?
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.
At some point recently, PHP/Apache running on FreeBSD decided that i'm on
GMT, instead of EST5EDT. The system date is correct:
bash-2.05a# date
Tue Aug 13 14:39:37 EDT 2002
But phpinfo() shows me:
_ENV[TZ] GMT
What's the best way to get PHP thinking I'm in eastern time again?
Thanks,
Wade
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
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 =
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
What is the error you get?
---John Holmes...
- Original
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
...
what is it you are testing for?
a page
5:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: isset
i think what you're trying to do is
?php
if($REQUEST_METHOD == POST)
{
echo Form has been submitted.;
exit;
}
else
{
echo Display the form that has to be submitted.':
exit;
}
?
Preston Wade [EMAIL
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
...
form method=post
input type=submit name=submit
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
I need a function that will wait for the existence of a remote file.
Does anybody know how this could be done??
Cheers,
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 Group Inc
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
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
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
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 1110
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-
From
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110
: Cannot add header information - headers already sent by (output
started at /home/swadie/public_html/redirect.php:2) in
/home/swadie/public_html/redirect.php on line 9
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110
-Original Message-
From: Adaran (Marc E. Brinkmann) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 10 May 2001 22:20
To: [EMAIL PROTECTED]
Subject: Re[2]: [PHP] Newbie
: $HTTP_REFERRER);
exit;
}
?
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
(Location: $fred);
exit;
} else {
header(Location: $HTTP_REFERRER);
exit;
}
?
and the updated referring code...
a href=redirect.php?fred=http://www.fusion.org.au;test link/a
Whew! Now to work on the hits counter bit...
swadie
~~~
Steve Wade
~~~
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 contact
Uploaded;
}
?
table border=0 width=751
tr
td
form method=post enctype=multipart/form-data action=? echo $PHP_SELF
?
Upload file!
input type=file name=userfile
input type=SUBMIT name=upload VALUE=upload
/form
/td
/tr
/table
Any thoughts would be appreciated.
wade
Uploaded;
}
?
table border=0 width=751
tr
td
form method=post enctype=multipart/form-data action=? echo $PHP_SELF
?
Upload file!
input type=file name=userfile
input type=SUBMIT name=upload VALUE=upload
/form
/td
/tr
/table
Any thoughts would be appreciated.
Wade Peacock
Webmaster
I am sure my solution is not the most elegant, but this is what I did:
?
switch($acc_state){
case 0:
$st0 = selected;
break;
case AL:
$stAL = selected;
break;
.
print SELECT size=1 tabindex=11 name=accstate
option value=\0\ $st0 /option
option
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 unsubscribe, e-mail: [EMAIL PROTECTED
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
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
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) {
Plus you forgot to use the print function (or to turn off php ?) t
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: [EMAIL
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 between these two and is there a preference in which
one to use?
-Wade
--
PHP General Mailing Li
I'm trying to do the following
input type=text tabindex=17 name=Aname value=
?
echo strtoupper($Aname);
?
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
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 to another page if
t
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
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
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...
In
= $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, April
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 post
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
this is opening home.php instead of the test include file..whats wrong?
tabletrtda href="home.php?Name=test"bTest/b/a/td
td? include("$Name.inc"); ?/td/tr/table
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
what you're wanting to do? Btw, it's looking for home.php 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
y = "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-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
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
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
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
w 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-
--
P
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]
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
Wade
[EMAIL
.
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.gnupg.org
check which checkbox has been checked so that specific row can be displayed?
Thanks for any help
Wade
s and the table is populated once.
Help someone?
Thanks
Wade
[EMAIL PROTECTED]
ree rows with different values and each checkbox will have
a unique name.
On the next page once a submit button has been pushed I want to do:
sqlExecute( "Select * from SkyDiary where 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]
ree rows with different values and each checkbox will have
a unique name.
On the next page once a submit button has been pushed I want to do:
sqlExecute( "Select * from SkyDiary where 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]
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
75 matches
Mail list logo