🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2460

Re: Ayuda con PHP

#2460
From: Eduardo Quiroz
Date: Thu, 05 Jan 2006 03:28
32 lines
2003 bytes
Wegh escribi�:
> jaja, te lo mando a tu mail, para que no tengas que llamar a tu "bola
> m�gica" ;)

del c�digo 1 (ingreso_proveedor.php), agrega
method="POST" en la etiqueta form.

antes:
<form action="ingreso_proveedor_2.php" name="ingreso_proveedor" 
target="principal" id="ingreso_proveedor" onsubmit="return validate()">
despues:
<form action="ingreso_proveedor_2.php" name="ingreso_proveedor" 
target="principal" id="ingreso_proveedor" onsubmit="return validate()" 
method="POST">

del codigo 2 (ingreso_proveedor2.php), cambia $variable por 
$_POST['variable'].

antes:
...VALUES('$rut', '$nombre', '$direccion', '$representante', '$ciudad', 
'$telefono', '$fax', '$pais', '$material'...

despu�s:
...VALUES('".$_POST['rut']."', '".$_POST['nombre']."', ...

se capta???
ojo con las concatenaciones y las comillas tanto simples como dobles.
Salute!!!

no te puse el c�digo entero para que no hagas copy paste y asi entiendas 
mejor el c�digo.
Salute!!!
Technical Details
Message-ID: <dpi3od$dg7$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
References: <dpgnin$uej$1@news.nivel5.cl> <dphu0q$b49$1@news.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,b7e8f503830f52f
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
From: Eduardo Quiroz <eduardoquiroz@vtr.net>
Newsgroups: chile.comp.programacion
Subject: Re: Ayuda con PHP
Date: Thu, 05 Jan 2006 00:28:49 -0300
Organization: Varios
Lines: 33
Message-ID: <dpi3od$dg7$1@news.nivel5.cl>
References: <dpgnin$uej$1@news.nivel5.cl> <dphu0q$b49$1@news.nivel5.cl>
NNTP-Posting-Host: pc-108-113-83-200.cm.vtr.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.nivel5.cl 1136431693 13831 200.83.113.108 (5 Jan 2006 03:28:13 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Thu, 5 Jan 2006 03:28:13 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317)
X-Accept-Language: es-es, es
In-Reply-To: <dphu0q$b49$1@news.nivel5.cl>