I don't think you can. The browser groups them by the name, so you will have
to write some code (simple) to change the name...
SED
-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: 11. apríl 2001 23:33
To: Php-General@Lists. Php. Net
Subject: [PHP] radio groups in l
even though i am putting them in an array?
like
>
(i have another 2 radio buttons with this group)
Peter
-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:05 AM
To: Peter Houchin
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] radio gro
My question:
are the groups all within different forms? does each for have a different
name? don't know, something to try.
On 4/11/01 5:05 PM, "Peter Houchin" <[EMAIL PROTECTED]> wrote:
> even though i am putting them in an array?
>
> like
>
> 'CHECKED'; }?>>
>
> (i have another 2 radio bu
Hi guys,
Below is the error message that I am receiving, and 3 or 4 lines around
the code that seems to be causing the issue. Lines are numbered so it gives
you a good idea of line 183. What I need to know, is in my context, what is
the error saying, and if there is a variable (or function
So far as I know, the HTML does not support arrays. However, you can make
simple code that adds number to each group so you can refer to them later
e.g.:
$i = 0;
while (your arguments) {
echo "name=\avail$i\";
$i++;
}
And afterwards you can refer to it the same way (per
by this I mean, html code of the form:
INPUT TYPE="radio" NAME="radiobutton" VALUE="radiobutton">
INPUT TYPE="radio" NAME="radiobutton" VALUE="radiobutton">
INPUT TYPE="radio" NAME="radiobutton" VALUE="radiobutton">
INPUT TYPE="radio" NAME="radiobutton" ALUE="radiobutton"
radiobuttons
One thing I forgot to mention, you can of course name the group: avail[$i]
(see below) so you will able to refer to it as an array in PHP file later
on.
--
So far as I know, the HTML does not support arrays. However, you
Hi g0thic,
@ 8:17:24 PM on 4/11/2001, g0thic wrote:
...
> Fatal error: Call to a member function on a non-object in
> /home/httpd/www/g0thic/cawood_a4/edit_f.php on line 183
> 178- if($seditFileErr == "")
> 179- {
> 180-// Load primary key and form parameters
> 181-$fldf_id = get_par
Did you read PHP Manual? If you don't read online manual, I suggest to read it.
Annotated manual is very useful.
http://www.php.net/manual/en/language.variables.external.php
Regards,
--
Yasuo Ohgaki
"Phil Labonte" <[EMAIL PROTECTED]> wrote in message
1B5C7FA9D60DD511ABEF00508BFDEFDC106A@EXCHAN
One apparent problem with foreach() is it can misbehave code as follows.
(4.0.4pl1, 4.0.5RC6)
function foo($a) {
foreach ($a[0] as $k => $v) {
echo $k.$v;
}
}
$a = 'abc';
foo($a);
You'll get 'server not found' or browser waiting forever with this code.
(If you don't, please let me know
*
--
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]
I'll post you a simp
If you are using Windows, no. (resolver does not work under windows)
Regards,
--
Yasuo Ohgaki
"Jochen Kaechelin" <[EMAIL PROTECTED]> wrote in message
NFBBLHGFAKNLFNPOHMPHCEENCGAA.jk@intern">news:NFBBLHGFAKNLFNPOHMPHCEENCGAA.jk@intern...
> What about this error:
>
> checkdnsrr() is not supported
Do you install Linux kernel source? and have correct symlink for kernel headers?
Sounds like it's the cause to me.
Regards,
--
Yasuo Ohgaki
""Plamen Slavov"" <[EMAIL PROTECTED]> wrote in message
002a01c0c276$32b005e0$98d209c0@plamensl2">news:002a01c0c276$32b005e0$98d209c0@plamensl2...
> Hi all,
I'm trying to create the following array:
$host_info = array(
"hostname" => "localhost"
"log" => "rocketbox_db.log"
"username" => $username
"password" => $password
"database" => "rocketbox"
"table" => $table
);
however when
Dude, you need commas between your array items.
Gfunk - [EMAIL PROTECTED] - http://www.gfunk007.com/
- Original Message -
From: "Duke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2001
In article <000501c0c2f5$185e8e80$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Duke") wrote:
> I'm trying to create the following array:
>
> $host_info = array(
> "hostname" => "localhost"
> "log" => "rocketbox_db.log"
> "username" => $username
> "pass
> One apparent problem with foreach() is it can misbehave code as
> follows. (4.0.4pl1, 4.0.5RC6)
>
> function foo($a) {
> foreach ($a[0] as $k => $v) {
> echo $k.$v;
> }
> }
>
> $a = 'abc';
> foo($a);
>
> You'll get 'server not found' or browser waiting forever with this
> code. (If y
Hello,
Does anyone have ideas about this kind of scenario?
1) Load a php page, based on whether a user is currently
authenticated either:
a) if not authenticated: pop up a new browser window
or
b) if already authenticated, proceed
2) Based on the login id of t
I believe foreach also works on a copy basis, not a pointer or reference. So
if you try and alter the array you are foreach'ing it won't work as
expected.
For instance this:
$array = array("var1", "var2", "var3");
foreach ($array as $val)
{
if ($val == "var2")
{
$val = "changed2";
}
}
pr
I'm guessing it's either for a Quiz script or an Auction script.
If you want to make it easy on yourself, use a database to store the
starting time (when the timer "starts") and what time the test/auction
should end. When someome makes a submission, get the time stored in the
database and see if
Better than the people who make a new thred by hitting Forward ;)
--
Plutarck
Should be working on something...
...but forgot what it was.
""Chris Lee"" <[EMAIL PROTECTED]> wrote in message
9b1rbb$mr3$[EMAIL PROTECTED]">news:9b1rbb$mr3$[EMAIL PROTECTED]...
Accually, Ive noticed in Outlook Expr
> I know how to do popups with Javascript, but what I want is
> to use purely PHP. Is there a way to spawn a browser window
> from a server-side action?
I'm afraid you'll have you use Javascript. The only way to make a new window
is to use window.open, or to have someone click a link with the ta
I've been working on a way to strip invalid characters from user input with
little or no need to rip the hair out of my head, and I learned some
interesting things in the process.
For one thing, hair really is stuck in there good, man.
But the important thing is how to increase your global names
I am writing a PHP script that operates on a MySQL database that uses the
e-mail address as the primary key. If the e-mail doesn't exist in the database
(when a form is submitted), I want to insert a new record. If it does, I want
to update the existing record.
How can I make the query that
I was looking at marc.theaimsgroup.com listing of message archives (which is
how I finally found the address to this newsgroup in the firstplace) to find
the MySQL group, however I noticed that the one at mysql.com is just a
"mailing list". (I prefer to preserve my inbox for personal messages and
I had a similar question about case-sensitivity, and I was told that MySQL
is automatically case-insensitive! But it depends on your version of MySQL.
Go to the mysql manual and look at chapter 20.16 "Case sensitivity in
searches".
In the newest versions of MySQL, all searches are case-insensiti
Most PostgreSQL functions are wrapper functions for libpq. Reading documents
about libpq will help.
Answer to your question is, it does not read all data into memory. I think most
DB doesn't do that also.
Data will be buffered in PostgreSQL backend, size is depends on your
configuration.
I'm not
It means your OS does not allocate enough resources.
Linux:
$ ipcs -l -s
FreeBSD:
$ ipcs -S
Refer to your OS manual to change them.
Regards,
--
Yasuo Ohgaki
""Philip Murray"" <[EMAIL PROTECTED]> wrote in message
002e01c0c20a$b17e9ba0$0201a8c0@sparlak">news:002e01c0c20a$b17e9ba0$0201a8c0@spar
Hi Plutarck,
The 'mailing list' at MySQL _is_ very much like this one and is also very
active. Send mail to [EMAIL PROTECTED] to subscribe.
Regards,
@lvin
-Original Message-
From: Plutarck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:40 AM
To: [EMAIL PROTECTED]
Subject:
Apologies in advance if this has been discussed before or is a simple
fubar on my part. I can only search through the archives for so
long... :-)
Experiencing a frustrating problem on this end with slashes being added to
my template files. Here are the details:
Using PHP on a webhost that c
I'm getting this: "Warning: error opening in /path/to/file.php on line 32"
Here's what I want to do, maybe I'm approaching it incorrectly? I need to
collect multiple files via a form and upload them via FTP (can't use HTTP
because I'm uploading to a different server). I collect them just fine
I have called from html a php form and passwd a value, but how can I
from PHP pass the value to an html for, without using php ?
Scenario
After searching a db, a list of valid part numbers gets displayd from
the Mysql db, the client picks part#2 and then that click would call the
html form which
"Michael Dickson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On the server itself (to which I have root access) I type:
>
>someProgram arg1 arg2 arg3
>
> and it runs properly, returning the proper output to standard output (the
> screen). I can do this
[Andrei Zmievski <[EMAIL PROTECTED]>]
> On Tue, 10 Apr 2001, Derick Rethans wrote:
> > hrm,
> >
> > is it really needed to add 3.6MB of stuff to the PHP cvs?
>
> Grr, I agree. Maybe it can wait until PEAR is out of PHP's CVS.
Hey hey, take a closer look before reacting. This stuff _is_ out of
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 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?
$fp=fopen($agentcode.'CyberTrac.ctr', "w");
another newbie programmer question...
is it possible to output the results of an array loop into a variable, or
directly into an SQL call?
Obviously the code below is impossible, but illustrates what I want to do:
//declare the array
$info_request = array (1 =>
"firstname","lastname","email","h
Hi midget2000x,
@ 2:13:10 AM on 4/12/01, midget2000x wrote:
...
> Obviously the code below is impossible, but illustrates what I want to do:
> //declare the array
> $info_request = array (1 =>
>"firstname","lastname","email","howfound","optin","comments","request_type","request_bucket","date")
$info_request = array (1 =>
"firstname","lastname","email","howfound","optin","comments","request_type",
"request_bucket","date");
$flds = implode(",", $info_request);
$sql = "INSERT INTO mytable($flds)"
mysql_query($sql)
hope it helps at least a little.
-elias
http://www.kameelah.org/eassoft
Hi
For some reason this works for me, can even download .html files
$headertxt = "Content-Disposition: attachment; filename=\"".$filename."\"";
header("Content-Type: application/force-download");header($headertxt);
Tom
At 12:09 AM 12/04/01 +0500, Vikram Vaswani wrote:
>Hi!
>
>I have a script wh
@ 2:39:12 AM on 4/12/01, Brian Clark wrote:
...
> @ 2:13:10 AM on 4/12/01, midget2000x wrote:
...
>> //declare the array
>> $info_request = array (1 =>
>"firstname","lastname","email","howfound","optin","comments","request_type","request_bucket","date");
Sorry, I
101 - 141 of 141 matches
Mail list logo