Re: [willbegood] display a field value as "default value" for a texbox field (admin side)
Hi willbegood,
I don't think PHP alone could solve this, since the name and age fields are on the same web page as the description field. I think the only way to solve this would be with some custom JavaScript which dynamically updates the text field.
A simple alternative might be to literally use "$name" and "$age" in your description field, then replace them on the front-end:
<?php
$record['description'] = str_replace('$name', $record['name'], $record['description']);
$record['description'] = str_replace('$age', $record['age'], $record['description']);
echo htmlspecialchars($record['description']);
?>
If you're set on having the textbox dynamically update, we could accomplish this via custom programming through our consulting service. Please let me know if you're interested in that.
I hope this helps. Please let me know if you have any questions.
All the best,
Chris