hi,
i hav two programs ,
html
form name=f action=p.php mehtod=post
input type=text name=fname
input type=submit
/form
/html
p.php:
?php
echo($fname)
?
i tried these programs and i didnt get the value of the variable in another php
program. butit is not getting. one our friend told
On Wednesday 05 February 2003 16:36, bismi jomon wrote:
hi,
i hav two programs ,
html
form name=f action=p.php mehtod=post
input type=text name=fname
input type=submit
/form
/html
p.php:
?php
echo($fname)
?
i tried these programs and i didnt get the value of the
Hi,
you have to write it exactly like this:
echo $_POST['fname'];
HTH,
Bastian
echo $_post(fname)
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try
p.php:
?php
//Not ?php
echo($fname);
?
Jochem
Bismi Jomon wrote:
hi,
i hav two programs ,
html
form name=f action=p.php mehtod=post
input type=text name=fname
input type=submit
/form
/html
p.php:
?php
echo($fname)
?
i tried these programs and i didnt get the value of
Hi All,
Sorry to be a pain on this one as it is sorta off topic.. but any help
would be awesome.
I'm creating a report for Product Popularity in which the Admin is
present with a form and they have the ability to select A product or
multiple products from a drop down combo box.
The form is
You can take the selected items posted to your page and use in_array() to
search for the current item as your code creates the list. this is a chunk
of code that i use to do the same thing. I wrote this a long time ago, so
there may be better ways to do thisbut it works. ;-)
snip
if
Thank Jason! It counts now.
So if i want to make something like
Most view tutorial is $row[title] How can i do this?
Regards,
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 05, 2003 1:44 PM
Subject: Re: [PHP-DB]
Hi All,
Again.. a little off topic - sorry (again!).
Have a form that allows me to select a bunch of product names from a
drop down combo box.
I'm trying to create code like in ('Product name1','Product Name2) to
be inserted into an SQL statement.
I figured that since $products was ALREADY
The 1st one didn't work, but the 2nd one did work. Fantastic! Thanks alot,
you saved me from frustrations.
Quoting John W. Holmes [EMAIL PROTECTED]:
I'm having problem querying a table with a field value containing an
appostropy, please help. Using ODBC to connect MSAcess database.
On Thursday 06 February 2003 01:13, Aaron Wolski wrote:
Hi All,
Again.. a little off topic - sorry (again!).
Have a form that allows me to select a bunch of product names from a
drop down combo box.
I'm trying to create code like in ('Product name1','Product Name2) to
be inserted into an
Argh
HOW does one check for an array being empty from a form field??
Tried a billion different things and NOTHING works
I've tried:
if ($products == \n) {
echo hello;
}
else {
echo bye;
}
if ($products == ) {
echo hello;
}
else {
First try isset($product) to see if it's being POSTed or GETted
properly. You might need to use $_POST['products'] or
$_GET['products'].
--- Aaron Wolski [EMAIL PROTECTED] wrote:
Argh
HOW does one check for an array being empty from a form
field??
Tried a billion
Eu tenho dois SELECT um para os meses e outros para os anos, como faço para garantir
que o utilizador não possa escolher um ano já passado, e durante o presente ano apenas
os meses seguintes e o actual.
Desde já obrigado
__
Rui
What about:
count($arrayname)
Should tell you how many items are in an array.
-Original Message-
From: Aaron Wolski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 4:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] checking for empty array from a form field?
I usually use:
while(list($key,$value) = each($products)) {
echo $key:$value;
}
On Wed, 2003-02-05 at 15:03, Aaron Wolski wrote:
Argh
HOW does one check for an array being empty from a form field??
Tried a billion different things and NOTHING works
Ok... well
When I select the select product which has a option value= it tells
me the count is one (1). If I select an ACTUAL product it tells me
one(1) was select.. if I select two ACTUAL products it tells me two (2)
products were selected.
For SOME reason it doesn't seem to be recognizing that
to find out if an array is empty use:
empty()
it must be unset
NULL returns false
0 returns false
it must be truly empty to return true...
Ok... well
When I select the select product which has a option value= it tells
me the count is one (1). If I select an ACTUAL product it tells me
Somebody else replied with isset($varname). Try that. The count() function
is working as expected (see
http://www.php.net/manual/en/function.count.php). So maybe it's not the best
choice for trying to find out what you want.
-Original Message-
From: Aaron Wolski [mailto:[EMAIL
hallo,
look like here?
http://www.php.net/manual/en/function.sizeof.php
echo sizeof($HTTP_POST_VARS[myArrayObject]);
a.v.l
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 5. Februar 2003 02:54
An: Aaron Wolski
Cc: [EMAIL PROTECTED]
Well well well.. with the help of someone else pointing me in a
different direction altogether here's what we came up with that totally
works!
$PRODUCT_SELECTED = TRUE;
foreach($products as $value) {
if(empty($value)) {
Please, any idea to resolve my problem!!!
I have the output:
Connected to DataBase Oracle!
Warning: OCIStmtExecute: ORA-03106: fatal two-task communication protocol
error in /var/www/html/ora2.php on line 21
Warning: OCIFetchStatement: ORA-24374: define not done before fetch or
execute and
try :
if (strlen($products) == 0) {
echo nothing entered in field;
}
http://www.php.net/manual/en/function.strlen.php
Jeff
- Original Message -
From: Aaron Wolski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 05, 2003 3:03 PM
Subject: [PHP-DB] checking for
I have a situation where I have a network at work with only Sequel Server
2000 on a Microsoft IIs Server. Is php a viable option for accessing a
sequel database?
Thanks
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I would like to know how to get error messages to
appear if something goes wrong. Like if the mysql
finds the database account but fails to update the
table, finds the table but a unique entry is inputted
so can't add. I'd like to be able, if possible, to
customize the error message. Could
Hello,
I am a novice PHP dev having a strange issue with mysql_fetch_array.
For some reason, it is keeping data from previous queries in the array, and
displaying it in the web page.
My development platform is Win2k SP2, Apache 1.3.23, PHP 4.3.0,
MySQL-MAX 3.23.47-nt.
Here is the code
``List-Unsubscribe''
I have a situation where I have a network at work with only Sequel
Server
2000 on a Microsoft IIs Server. Is php a viable option for accessing
a
sequel database?
Sure...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today.
I am a novice PHP dev having a strange issue with
mysql_fetch_array.
For some reason, it is keeping data from previous queries in the
array,
and
displaying it in the web page.
My development platform is Win2k SP2, Apache 1.3.23, PHP 4.3.0,
MySQL-MAX 3.23.47-nt.
Here is the code
I once read a great article in the first or second issue of
http://www.phparch.com/ on database abstraction layers. At which point I
used the tutorial as a starting point for creating a very similar structure
I named dbWave. There are only minor differences and a postgresql driver is
now included
hello,
thank you for your time.
please note the time intervals that are working. what i
want is to select only data that is two weeks old or younger. i did a
test with one day and it worked great. i inserted the two-week/14days
and neither of them worked. 1 month worked. i could not find
please note the time intervals that are working. what i
want is to select only data that is two weeks old or younger. i did a
test with one day and it worked great. i inserted the two-week/14days
and neither of them worked. 1 month worked. i could not find anything
on php.net that
31 matches
Mail list logo