Re: [PHP-DB] Undefined variable

2004-05-26 Thread Viorel Dragomir
echo $_REQUEST['Name'];
  - Original Message - 
  From: Miguel Guirao 
  To: PHP DB List 
  Sent: Wednesday, May 26, 2004 17:47
  Subject: [PHP-DB] Undefined variable


  Hi!!
   
  I have a very simple and smail script with just one input text box and a
  submit button.
  After that, I have an echo function in the same code page that just
  displays the data entered in the text box.
   
  But I'm receiving an undefinied variable error when I execute it!!
   
  Echo ($Name);
   
  I'm using Windows 2000 Server and PHP for Windows.
   
  Regards,
   
  Miguel Guirao
  Servicios Datacard
  www.SIASA.com.mx
   


RE: [PHP-DB] Undefined variable

2004-05-26 Thread Miguel Guirao
Thanks so much!!!

Miguel Guirao
Servicios Datacard
www.SIASA.com.mx

-Mensaje original-
De: Viorel Dragomir [mailto:[EMAIL PROTECTED] 
Enviado el: MiƩrcoles, 26 de Mayo de 2004 09:55 a.m.
Para: Miguel Guirao; PHP DB List
Asunto: Re: [PHP-DB] Undefined variable

echo $_REQUEST['Name'];
  - Original Message - 
  From: Miguel Guirao 
  To: PHP DB List 
  Sent: Wednesday, May 26, 2004 17:47
  Subject: [PHP-DB] Undefined variable


  Hi!!
   
  I have a very simple and smail script with just one input text box and
a
  submit button.
  After that, I have an echo function in the same code page that just
  displays the data entered in the text box.
   
  But I'm receiving an undefinied variable error when I execute it!!
   
  Echo ($Name);
   
  I'm using Windows 2000 Server and PHP for Windows.
   
  Regards,
   
  Miguel Guirao
  Servicios Datacard
  www.SIASA.com.mx
   

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Undefined variable

2004-05-26 Thread Daniel Clark
Are you using a FORM Post or Get ?

Perhaps $_POST['Name']  or $_GET['Name']

Hi!!
 
I have a very simple and smail script with just one input text box and a
submit button.
After that, I have an echo function in the same code page that just
displays the data entered in the text box.
 
But I'm receiving an undefinied variable error when I execute it!!
 
Echo ($Name);
 
I'm using Windows 2000 Server and PHP for Windows.
 
Regards,
 
Miguel Guirao
Servicios Datacard
www.SIASA.com.mx
 





Re: [PHP-DB] undefined variable? how could it be?

2002-08-15 Thread Dejan Rajic

This is CorpseEater's reply on your message send to him on 8/15/2002 :

Bo basically this a code for uploading images and text info into a mysql
Bo database, however, when I execute this code, an error occured as:
Bo Undefined variable: action in \phpmySQL\add.php on line 2
Bo what will be the problem?

Bo ?php




-snatch--

Bo if ((isset($action)||($action == upload)) {

snatch-




Bo   // ok, let's get the uploaded data and insert it into the db now
Bo   include open_db.inc;

Bo   if (isset($binFile)  $binFile != none) {
Bo $data = addslashes(fread(fopen($binFile, r), filesize($binFile)));
Bo $strDescription = addslashes(nl2br($txtDescription));
Bo $sql = INSERT INTO tbl_Files ;
Bo $sql .= (description, bin_data, filename, filesize, filetype) ;
Bo $sql .= VALUES ('$strDescription', '$data', ;
Bo $sql .= '$binFile_name', '$binFile_size', '$binFile_type');
Bo $result = mysql_query($sql, $db);
Bo mysql_free_result($result); // it's always nice to clean up!
Bo echo Thank you. The new file was successfully added to our
Bo database.brbr;
Bo echo a href='main.php'Continue/a;
Bo   }
Bo   mysql_close();

Bo } else {
?
Bo HTML
Bo BODY
Bo FORM METHOD=post ACTION=add.php ENCTYPE=multipart/form-data
Bo  INPUT TYPE=hidden NAME=MAX_FILE_SIZE VALUE=100
Bo  INPUT TYPE=hidden NAME=action VALUE=upload
Bo  TABLE BORDER=1
Bo   TR
BoTDDescription: /TD
BoTDTEXTAREA NAME=txtDescription ROWS=10 COLS=50/TEXTAREA/TD
Bo   /TR
Bo   TR
BoTDFile: /TD
BoTDINPUT TYPE=file NAME=binFile/TD
Bo   /TR
Bo   TR
BoTD COLSPAN=2INPUT TYPE=submit VALUE=Upload/TD
Bo   /TR
Bo  /TABLE
Bo /FORM
Bo /BODY
Bo /HTML
Bo ?php
Bo }
?






-- 
Greets
[EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] undefined variable? how could it be?

2002-08-15 Thread Dejan Rajic

This is CorpseEater's reply on your message send to him on 8/15/2002 :

Sorry - i made a mistake :

it's '' instead of '||'


-snatch--

Bo if ((isset($action)($action == upload)) {

snatch-








-- 
Greets
[EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] undefined variable? how could it be?

2002-08-15 Thread Jason Wong

On Friday 16 August 2002 02:22, Bo wrote:
 basically this a code for uploading images and text info into a mysql
 database, however, when I execute this code, an error occured as:
 Undefined variable: action in \phpmySQL\add.php on line 2
 what will be the problem?

php.ini - register_globals ?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
patent:
A method of publicizing inventions so others can copy them.
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php