- Original Message -
From: Phil Matt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 17:08
Subject: [PHP-DB] Problem with passing variables
Hello to all.
I am a relative newcomer to PHP. I am trying to pass the value of a
variable from a
MySQL database from
If you have something like this:
echo 'tda href=email.php?recip=$myrow[0]img src=graphics/mail.gif
class=imglink alt=Click to send mail to this person //a/td/tr';
It wont work. Use instead:
echo 'tda href=email.php?recip='.$myrow[0].'img
src=graphics/mail.gif class=imglink alt=Click to send
On 27 Jan 2004 at 15:56, Ricardo Lopes wrote:
If you have something like this:
echo 'tda href=email.php?recip=$myrow[0]img src=graphics/mail.gif
class=imglink alt=Click to send mail to this person //a/td/tr';
It wont work. Use instead:
echo 'tda href=email.php?recip='.$myrow[0].'img
; [EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 4:27 PM
Subject: Re: [PHP-DB] Problem with passing variables
On 27 Jan 2004 at 15:56, Ricardo Lopes wrote:
If you have something like this:
echo 'tda href=email.php?recip=$myrow[0]img src=graphics/mail.gif
class=imglink alt=Click to send
On update.php, you need to refer to the varibles passed from the first page
like so: $_POST[varname]. I think that'll fix your problem.
-Original Message-
From: Mazin Albahkali [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB]
I am sure someone else will beat me to this but here is an example
update.php
---
?php
echo html\n;
echo body\n;
//add this to assign POST to a variable you can use on this page
$sname=$_POST[sname]
//that will give you an idea of what to do
if (isset($sname)) {