PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
private function addHiddenValue($name, $value)
{
$this->hidden .= '<input type="hidden" name="' . $name . '" value="' . $value . '" />' . $this->lf;
}
// from inside another function...
$x .= '<tr><td colspan="5">' . $this->hidden . $this->lf
.'<input type="Submit" value="Submit" /></td></tr>' . $this-lf;
echo "The value of x is $x";
echo "The value of hidden is $this->hidden";
// from inside another function...
// Make the var $x into a sting with a string inside of it
// This assumed that the call to $this->addHiddenValue has already been called
$x .= '<tr><td colspan="5">' . $this->hidden . $this->lf .'<input type="Submit" value="Submit" /></td></tr>' . $this->lf;
echo "The value of x is $x";
echo "The value of hidden is $this->hidden"; // This will only be set if the above method is called before it, no?
At this time of night, erm, morning, especially in BigMo, you have got to expect a missing '>' or two. Of course, for me right now, five cups of coffee and 60 Oz of CocaCola after 8:00PM almost makes those things happen.
Woke up at 8:30AM yesterday morning. I posted that post at about 1:45 AM the following morning knowing I still had about 45 minutes of work to do then had to get home and unwind before go to sleep. I finally went to sleep at 3:15 AM and, as you can see here, I am posting at 8:45 AM ish. Little bit of sleep needs something to drive it, eh?
OK Everah. I'm not trying to give you a hard time. I'm just a little concerned really, that kind of stuff isn't good for you. Physcially and mentally. As Jerry Springer says "Look after yourselves and each other" and he's right.