The fact that there's a seg fault involved makes me think that's it's not so
much a problem w/ code, but a problem with either apache (or whatever web
server you use) a/o your PHP installation -
PHP may be seg faulting before it's done reading the data from the directory
and apache is reporting
On Friday 12 April 2002 14:17, Nick Richardson wrote:
Following on the same subject (kinda) of Variable Variables... i have
actually wondered this before... is there a difference between these 2
blocks?? (both should print worldhello if i am not mistaken, but is there
a difference in how the
Rodrigo Peres wrote:
if(isset($HTTP_GET_VARS['erase_data'])) {
session_unregister('data');
}
but the code doesn't erase the var from session, and If i use
session_unset('data') it erases all vars from session, that I don't want to.
How to solve this?!??! i have started the session
Hi,
I'm using PHP 4.1.2 to write a webmail. I'm using Procmail along with
Sendmail. PHP runs as user nobody or user apache. Note that I have the user
id and password in my PHP script from using HTTP authentication. FYI I'm
running Mandrake Linux 8.1.
The problem is:
I want to write to some
Hi All,
I have the following question. I have been developing with C for a
while and I was used that the \0 indicated the end of a string. So if
I had a variable containing 1234\056789 and the variable was printed,
only 1234 was printed.
As I can see in PHP (version 4.0.6 ), when I echo such a
I think that all chars (\0 to \255) are valid chars in php, from the looks
of it, php maintains the strings length, or something, so that you can have
\0 in the string
Martin
-Original Message-
From: Marco Laponder [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 4:50 PM
To:
the zval struct in PHP is multifunctional and its string branch has length member.
Much of the operations on string are with
*_STRINGL() L comes from length. It is preferable php function to use the length
instead of *_STRING macros which looks throug the
string to find its end.
Andrey
-
On Friday 12 April 2002 14:36, gaukia 345 wrote:
Hi,
I'm using PHP 4.1.2 to write a webmail. I'm using Procmail along with
Sendmail. PHP runs as user nobody or user apache. Note that I have the user
id and password in my PHP script from using HTTP authentication. FYI I'm
running Mandrake
May I also suggest that you rewrite your echo statements as:
echo 'OPTION VALUE=donateDonate this item/OPTION';
Vastly improves legibility.
or just
echo OPTION VALUE=donateDonate this item/OPTION;
is there any common use how it should be coded or does it really make no
difference
Actually since everything is going to XML compliance you will not want to
leave out the quotes since it is a very very structured language you could
hang everything without your quotes :) Just because it works, doesn¹t mean
it's the best way of doing it. Browsers try to parse html with the
Hello all
CodingTheWeb.com has several reports of Google's new SOAP based application
programming interface:
http://www.codingtheweb.com/projects/newslog/index.php?filter=Google
Has anyone tries using this in PHP yet???
S.
_
Does Reply-To works for you?
My Web hosting provider runs php (4.1.1) / sendmail (8.10.2) / apache
(1.3.20) / linux red hat (6.2) and I don't get bounced e-mails.
Any suggestions?
Tony
([EMAIL PROTECTED])
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
It could be done with MySQL itself by either adding a sort_title field
that you make those changes to, by selecting the data into a temporary
table then performing the appropriate updates before selecting it
ordered properly, or by some crazy complex combinations of the if,
index, and substr
Hello there,
I have a string that comes in various sizes and word numbers, I wish to
extract the last word from this string, how can I do it?
I have already looked at substr() and strrpos() man pages looking for the
answer... couldn't find it though...
Thank you!
Regards
Gil Disatnik
I don¹t know of any function off the top of my head, but you could try doing
an:
$array = explode(' ', $string);
$lastword = array_pop($array);
$string = implode(' ', $array);
Now $string is equal to the original string without the last word.
$lastword is equal to the lastword.
It's possible
Hi all,
i'm currently busy with db design. Since I have not worked with these
amounts of content data I have a few questions.
I have 2 tables: a table filled with records about products (currently 2200
records) (tblProducts)
The next table is a table with pictures referring to product_ID's.
Is it possible to keep the variable name-space separate between, say, two
files (one included into the other) to avoid name collisions? I'm trying to
get two scripts to work together on the same page. Each script defines some
classes that have the same names but work differently (ex., class
I'm no expert on massive amounts of data, but if you index the field which
you are querying by (say you're relating the images to the product via
productID), then I'd index the productID field of tblPics.
Indexing (to the best of my limited knowledge) speeds up the querying
process, and slows
i'd suggest using PEAR's mail class. It'll fit for all your needs and is
easy to use.
[EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
$headers = Content-type: text/html\n;
$fromEmail = urlencode( $dbQuery-adminEmail );
$subject = Your new eStore is
Try homesite, its all worth the money
Brian Drexler [EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm a big Edit Plus fan as well. Really though, it's just a fancy text
editor with color coding and autocompleting, and IMHO the autocompleting
can
get
Hi guys,
anyone has an idea about how to extract a zip file on win2k with php
i can not use a command line unzip utility because it only says The system cannot
execute the specified program. in the apache log
I tried to use pclszip class at http://www.phpconcept.net but i can not get it to work
On Friday 12 April 2002 17:59, Gil Disatnik wrote:
Hello there,
I have a string that comes in various sizes and word numbers, I wish to
extract the last word from this string, how can I do it?
I have already looked at substr() and strrpos() man pages looking for the
answer... couldn't find
why do you have more than one class with the same name?
would be easier using different names for different classes.
or define a base class template
and extend it in the files as desired, but give them unique names.
how do you know later, which class does what in which way, when they have
the
Hi
I'm searching for an XML-QL/XQuery engine or module for PHP. Does anyone
have any idea where I can find it?
Thx a lot
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
wrong again:
eregi(^/*_[0-9]{4}\.jpg$, $file_name)
now yo say, / at the beginning between 0 and unlimited times, the rest is
ok.
try this, i rechecked my second example and saw that i did a \. at the
beginning. this was wrong,
because it'll search for a dot at the beginning. simply forget about
beware if you're using preg_match instead.
regex using preg_match have to be enclosed by /
so the same with preg_match would look like:
preg_match(/^.*_[0-9]{4}\.jpg$/i, $file_name)
and using preg_match meens that / is a special character and has to be
backslashed if
wanted by it's meening. and
I´m kind of new to this mysql stuff but anyway...
I have a row in a table with a timestamp of 14 chars and i dont know how to
convert the row named 'tidsstampel' into something like this:
select DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y');
i dont wanna use a static date for this, id rather
To use php+mysql on spaceports you have to sign up for a cgi-bin account and
store your files on that server..
/Micke
Simonk [EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have made a web site containing Php and Mysql script
And I have applied for a free
I have a form processor that displays a confirmation
screen showing the submitted form values to the user
after they submit the form. This confirmation
screen's contents are generated by the script itself.
However, I'd like to be able to redirect the results
to any pre-existing webpage. For
No problemo! Do this:
select DATE_FORMAT(tidsstampel, '%W %M %Y');
There you go!
Rick
When a man won't listen to his conscience, it's usually because he doesn't
want advice from a total stranger. - Lindsey Stewart
From: Michael Andersson [EMAIL PROTECTED]
Date: Fri, 12 Apr 2002 14:21:28
Have you tried to change the defualt timeout value from 30 secs to something
larger or even -1 in the php.ini file?
Could be a problem to upload 4mb in 30 secs if your on a slow conn..
/Micke
FyiÎ?rk µérkt [EMAIL PROTECTED] skrev i meddelandet
What i want to do is :
include(http://localhost/folder/file.php?foo=bar;);
but it doesn't work. As you may guess it looks for a
file called file.php?foo=bar. url_fopen is set to
on in my php.ini file as told in the PHP manual.
I work on win98+apache+php4.1.1(or something like that
but at least
At 12.04.2002 19:20, you wrote:
Works fine here. I can see the main page, and it opens up a window Knackige
Preise!
auf wiedersen
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Thanks Jason,
that´s what I didn´t want to hear ! ;-) Seems to get a long night,
installing M$ $tuff again,
Check the Note about 5 lines down on this page.
http://www.php.net/manual/en/features.remote-files.php
Note: You can't use remote files in include() and require() statements on
Windows.
Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Email :
hi
i would like now how can we call a function within another function in
php?
thx a lot
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maybe try a require
?php
require 'path/to/filename.php';
?
hth
Jas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 12.04.2002 05:23, you wrote:
I have a form processor that displays a confirmation
screen showing the submitted form values to the user
after they submit the form. This confirmation
screen's contents are generated by the script itself.
However, I'd like to be able to redirect the results
to
function firstfunction(){
code;
code;
code;
secondfunction();
}
-Original Message-
From: Alia Mikati [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2002 06:38
To: [EMAIL PROTECTED]
Subject: [PHP] functions
hi
i would like now how can we call a function within another function in
php?
Hi Alia,
i would like now how can we call a function within another function in
php?
The same way you'd call it from outside a function :-)
?php
function hello () {
echo hello ;
}
function world () {
hello ();
echo world;
}
hello();
echo br;
world();
?
...should output
hello
?php
function say_hello(){ print Hello; }
function welcome() { say_hello(); }
welcome();
?
HTH
Regards,
Andrey Hristov
- Original Message -
From: Alia Mikati [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 12, 2002 4:37 PM
Subject: [PHP] functions
hi
i would like now
like you call every function in php.
Alia Mikati [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi
i would like now how can we call a function within another function in
php?
thx a lot
--
PHP General Mailing List (http://www.php.net/)
To
I was able to see the PHP code because I came home and fired up
Outlook. Right after I posted that last message, I closed Outlook and
went to Earthlink webmail. Same problem. No code, and incredibly weird
hyerlinks and garbled code. I opened Outlook back up, loaded the same
Hello.
I still can't manage to test locally the pages in my notebook, without using
the htdocs directory. As i told you, i managed to install the all the stuff
correctly, made my first test with a php script in the htdocs Apache
instalation folder, but when i tried to put that new directory
Just a noob php/mysql question... (I suppose)
When I try just putting php code in my insert queries, it goes like this:
insert into mytable values('?php echo some string; ?')
select * from mytable, returns:
?php echo some string; ?Some string
So the insert-query inserts both the code AND the
Oh what a shame on me! Sorry and thank you...
--- Collins, Robert [EMAIL PROTECTED] wrote:
Check the Note about 5 lines down on this page.
http://www.php.net/manual/en/features.remote-files.php
Note: You can't use remote files in include() and
require() statements on
Windows.
Robert W.
Myabe you should assign some string to a variable:
$string = some string;
insert into mytable values ($string)
/Just a noob trying to help out
Torkil Johnsen [EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Just a noob php/mysql question... (I suppose)
On Thursday, April 11, 2002, at 09:17 PM, Jennifer Downey wrote:
Now I have a weird problem. I am using this code and can't understand
why it
doesn't work.
When the script is run it returns a blank page, no error or done.
here it is and any help would be appreciated.
if(($type ==
Hi there,
I am populating form elements (type=text) with values from a db, but if
the string has a space in it, it cuts the string off at the space. eg. $var
= the cat in the hat but all you see in the text box is the. is there a
function I should be adding to my echo line?
Also I have an
Namespaces aren't available yet, but should be with PHP 5 (?) when the Zend
Engine 2.0 is ready.
J
Aric Caley wrote:
Is it possible to keep the variable name-space separate between, say, two
files (one included into the other) to avoid name collisions? I'm trying
to
get two scripts to
Hey Javier:
On Thu, Apr 11, 2002 at 01:33:10PM -0300, Javier wrote:
But does it use templates? I want to use templates not functions that
generates html.
What do you mean, it uses templates not functions? Smarty uses
functions. Are you envisioning include files with scripts in them that
On Friday, April 12, 2002, at 08:23 AM, John P. Donaldson wrote:
I have a form processor that displays a confirmation
screen showing the submitted form values to the user
after they submit the form. This confirmation
screen's contents are generated by the script itself.
However, I'd like
LAST DAY TO REGISTER
http://websapp.com/training.php
--Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a script which, when modified or added, automatically prints out
to a system printer that I define. Here is some sample code:
$job_desc=urldecode($job_desc);
define(PRINT_CMD, lpr -Pis );
$prt = -\n;
$prt .= | $type DRAWDOWN REQUEST |\n;
$prt .=
Hi Anthony:
On Fri, Apr 12, 2002 at 03:27:14AM -0400, Anthony Rodriguez wrote:
My Web hosting provider runs php (4.1.1) / sendmail (8.10.2) / apache
(1.3.20) / linux red hat (6.2) and I don't get bounced e-mails.
Put a from line in the additional headers argument:
mail($To, $Subject,
On Wed, 12 Apr 2000, Steph wrote:
Hi. Im using MySQL and as part of my tables I have titles (of stories). My
question os in regards to outputing those titles. Some of the titles begin
with words such as 'The', 'A', 'An', etc. Is there a way to order these
particular titles based on the
Can't make it to this one but would like to know of any other training
opps in the Balt-Wash-Phil-NY areas. Anybody know of a good source for
this info?
Daniel Kushner [EMAIL PROTECTED] 04/12/02 10:48AM
LAST DAY TO REGISTER
http://websapp.com/training.php
--Daniel
--
PHP General
Why do you want to include from localhost over HTTP? Sounds to me like
you want to do:
$foo='bar';
include $DOCUMENT_ROOT/folder/file.php;
-Rasmus
On Fri, 12 Apr 2002, Barýþ Mert wrote:
What i want to do is :
include(http://localhost/folder/file.php?foo=bar;);
but it doesn't work. As you
1.
This should work (notice quotes around var) : INPUT TYPE=text
NAME=whatever VALUE=?php echo $var; ?
This is incorrect (it only shows the first word) : INPUT TYPE=text
NAME=whatever VALUE=?php echo $var; ?
2. not sure about the second question but have you tried removing the
target, it seems
I guess the only real way is to use virtual() in this case. That's a bit
clunky as well, but it isn't quite as bad as going through CGI or all the
way out to the port 80 level.
-Rasmus
On Fri, 12 Apr 2002, Aric Caley wrote:
Is it possible to keep the variable name-space separate between,
Barry C. Hawkins wrote:
Barry Rasmus (you already figured this out, I'm sure),
That's the problem, it's there but the browser is ignoring the ? ? tag
as unknown (just as it should). The only way Earthlink can fix that is
to do an inline change of to lt; and to gt; when using the webmail
Hi Folks,
Does anybody know if there are differences in cookieprocessing
between
A.Suse 2.2.14-SMP/apache 1.3.12 / PHP 3.0.16 and
B.Suse 2.4.9 /apache 1.3.20 / PHP 4.0.6
I have moved working pages from A to B, and now (Win)Opera 6.01
will not accept cookies from the, formerly working, pages. I
Thanks for helping a newbie out - fread() worked perfectly:)
Ed
-Original Message-
From: CC Zona [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 5:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Assigning the contents of a file to a variable
In article
I am trying to configue PHP with Java support.
with PHP-4.1.2, JDK1.3.1_01
The installation goes smoothly. My php.ini file
contains the follwing section for Java
code
[Java]
java.class.path = /usr/local/src/php-4.1.2/ext/java/php_java.jar
java.home = /usr/local/jdk1.3.1_01
java.library =
At 12.04.2002 14:48, you wrote:
Hello.
I still can't manage to test locally the pages in my notebook, without using
the htdocs directory. As i told you, i managed to install the all the stuff
correctly, made my first test with a php script in the htdocs Apache
instalation folder, but when i
Stefen Lars wrote:
Hello all
CodingTheWeb.com has several reports of Google's new SOAP based
application programming interface:
http://www.codingtheweb.com/projects/newslog/index.php?filter=Google
Has anyone tries using this in PHP yet???
Yup -
Hi,
I'm trying to sort an array like following
myArray[1][firstname] = Joe;
myArray[1][lastname] = Smith;
myArray[1][company] = Bullock;
myArray[1][email] = [EMAIL PROTECTED];
myArray[2][firstname] = Jim;
myArray[2][lastname] = Cords;
myArray[2][company] = Jamen;
myArray[2][email] = [EMAIL
May I also suggest that you rewrite your echo statements as:
echo 'OPTION VALUE=donateDonate this item/OPTION';
Vastly improves legibility.
It's a problem, however, if you want to include a PHP variable in that echo
statement, if you're populating a SELECT menu with a loop, for instance;
On Fri, Apr 12, 2002 at 09:36:42AM -0700, Andrew Chase wrote:
:
: foreach(array_keys($menu_options) as $option_value){
: $option_text = $menu_options[$option_value];
: echo 'OPTION VALUE=$option_value$option_text/OPTION';
: }
:
: would just output
:
: OPTION
Hi all,
Is it possible to get dates in different languages
i.e. date (j F) would usually return, in the case, 13 April can I make it
display the date in French for example??
Thanks
Declan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
in php 4.0.6 on the begin of the script include file called config.php.
In config file i have ini_set('register_globals', 'off');
i setup session via session_register('variable') and redirect to
another page, where i include the same config (config.php) and call
session_start(); but when
This is a terribly inneficient way of handling your situation but I believe
it would work.
// First we're going to make a list of all company values
for($i=0; $icount($myarray); $i++)
{
$company_values[] = $myarray[$i][company];
}
// Then we're going to order the array using a standard
Hi, I was up on freshmeat and I saw a TON of php classes. I like to know how
can I use them? And is a class a bit of code that you are always using? If
so, how can I create my own classes.
Chuck PUP Payne
Sr. System Administrator
GDI Engineering, Inc.
2075-E West Park Place Blvd.
Stone Mountain,
Hi, I was up on freshmeat and I saw a TON of php classes. I like to know how
can I use them? And is a class a bit of code that you are always using? If
so, how can I create my own classes.
Chuck PUP Payne
Sr. System Administrator
GDI Engineering, Inc.
2075-E West Park Place Blvd.
Stone Mountain,
Or try the usort() function?
?php
...
myArray[1][firstname] = Joe;
myArray[1][lastname] = Smith;
myArray[1][company] = Bullock;
myArray[1][email] = [EMAIL PROTECTED];
myArray[2][firstname] = Jim;
myArray[2][lastname] = Cords;
myArray[2][company] = Jamen;
myArray[2][email] = [EMAIL PROTECTED];
On Friday, April 12, 2002, at 01:49 PM, Chuck PUP Payne wrote:
Hi, I was up on freshmeat and I saw a TON of php classes. I like to
know how
can I use them? And is a class a bit of code that you are always using?
If
so, how can I create my own classes.
A class is a definition for an
Well, start here probably:
http://www.php.net/manual/en/language.oop.php
-Steve
On Friday, April 12, 2002, at 12:50 PM, Chuck PUP Payne wrote:
Hi, I was up on freshmeat and I saw a TON of php classes. I like to
know how
can I use them? And is a class a bit of code that you are always
For those that haven't read my previous posts, i'm trying to be able to test
locally my php site. My installation (both apache and php) went smoothly.
But instead of using the htdocs folder for the test i wanted to use the
c:\website folder. So with some help from you guys i manage to configure
Hi guys, like every other problem I have this one is SURE to be
painfully simple to fix and make me look g0ofy again.
I have an edit user form with checkboxes like the one below :
INPUT type=checkbox value=Boating name=Activity[]
?docheck(Boating)?
When the form loads I grab the users
Is is possible to use php_auto_prepend and php_auto_append with .cgi files
located in the cgi-bin? I wanted to wrap a header and footer around a few
files. I am specifying the config directives in the .htaccess file.
AllowOverride All is on in the httpd.conf. Anyone have any ideas?
Sundogcurt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi guys, like every other problem I have this one is SURE to be
painfully simple to fix and make me look g0ofy again.
I have an edit user form with checkboxes like the one below :
INPUT type=checkbox
maybe this is not a php question but I thought I might ask here to, since
someone might know..´
is it possible to make a avi movie play inside an explorer window?
I just get it to open up in windows media player..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Friday, April 12, 2002, at 03:00 PM, Hawk wrote:
maybe this is not a php question but I thought I might ask here to,
since
someone might know..¥
is it possible to make a avi movie play inside an explorer window?
I just get it to open up in windows media player..
Nope, not a PHP
Have you considered using sablotron's Excellent Named Buffer support?
I do this all the time.
ie: $addl_buffers['MySecondBuffer'] = ?xml
version='1.0'?MyNodeBlah/MyNode
$addl_buffers['MyThirdArbitraryBuffer'] = ... etc etc etc...
then, in stylesheet, for instance:
xsl:variable
On Friday, April 12, 2002, at 04:42 PM, Jeff Levy wrote:
Have you considered using sablotron's Excellent Named Buffer support?
No, and it is perhaps due to my lack of familiarity with XSLT, but I'm
not sure how to use this technique... even with the example you've
provided. I haven't
does anyone know how to copy a tables structure (only) within mysql?
thanks.
jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
How do I update entries in MySQL? Say for example, I checked some fields to
a table, and decided to make update to a particular field. How do I do that
in PHP?
Regards,
Norman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Take a look at:
http://www.mysql.com/doc/U/P/UPDATE.html
It'll have everything you'll ever want to know about UPDATE :)
Rick
There is no such thing as a sudden heart-attack. It takes years of
preparation. - Unknown
From: Norman Zhang [EMAIL PROTECTED]
Date: Fri, 12 Apr 2002 14:23:28 -0700
On Friday, April 12, 2002, at 05:23 PM, Norman Zhang wrote:
How do I update entries in MySQL? Say for example, I checked some
fields to
a table, and decided to make update to a particular field. How do I do
that
in PHP?
// $db = database connection handler
$update_sql = UPDATE
On Friday, April 12, 2002, at 05:35 PM, Erik Price wrote:
How do I update entries in MySQL? Say for example, I checked some
fields to
a table, and decided to make update to a particular field. How do I do
that
in PHP?
// $db = database connection handler
$update_sql = UPDATE
Thank you so much.
Norman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I would go with this. If there's a title like:
A title begins with a vowel.
I guess it's better to store:
title begins with a vowel, A.
Now how to transform INSERT-SELECT to a temp table where you will
format, delete the original's records, and INSERT-SELECT from temp to
original...
On Friday, April 12, 2002, at 06:06 PM, Heidi Belal wrote:
if uses enter double quotes my html gets mixed up and
considers the users quote to be the end of the output
value for the input field.
...
now what do i do? how can i prevent that from
happing?
As a rule of thumb, you should
Hi all.
I have a tag like this on a php-generated web page.
select name=majors multiple size=6
option value=ArtArt/option
option value=BiologyBiology/option
option value=Business and EconomicsBusiness and Economics/option
etc.
etc.
/select
My question is... since this is a
select name=majors[] multiple size=6
option value=ArtArt/option
option value=BiologyBiology/option
option value=Business and EconomicsBusiness and Economics/option
etc.
etc.
/select
Note the [] after majors. Now majors is an array with the selected values.
--
Julio Nobrega.
Tô
Name your select element majors[] and when the form is submitted, your
form handler will get an array, not a scalar, called $majors. Step
through the array, and you'll get all the options that were selected.
~Chris /\
\ /
Hi,
If I have register_globals=off, how do I pass session variables? I tried
session_register(var1). session_is_registered(var1) appears successful,
but if I tried to echo the $var1. Nothing shows. How do I pass session
variables?
Thanks,
Norman
--
PHP General Mailing List
Hey PHP-gurus!
How do I run and invoke PHP XSL-parsing and
transformation using PHP version 4.0.6.?
Here is the sample code I want to run.
files included:
PHP-script
XML-file and XSL-file:They are formatted nicely
client-side by IE6.0.
(Please disregard the stupid text in the XML-file,
Hi,
If a PHP script is terminated due to time out (defined by
max_execution_time) or memory error (memory_limit exceeds), how can I detect
the error in code?
connection_timeout() is deprecated as of 4.0.5, and connection_status() does
not return the correct value when time out happens.
Any
I recently finished a great book on OO theory called
Beginning Java Objects by Jacquie Barker. It's published
by Wrox. The book is a Java book and there are Java code
snippets, but it's OO theories will work for all OO
languages. Java is C style coding like PHP, so you
shouldn't have any
Are single quotes valid around tag attributes in XHTML? I skimmed over the
W3C XHTML 1.0 spec before posting the previous message and got the
impression all attributes had to be double quoted. It would be great if
single quotes were valid, since I've fallen into the habit of using
them for the
1 - 100 of 135 matches
Mail list logo