Inserting dynamic text in a form button
-
Hi – can this be done?
<p span style=”padding: 10px 0 50px 40px;”><input type=”submit” name=”sendbutton” id=”myButton” class=”myButton” value=[insert_php] if ($_GET[‘kw’])
{echo ucwords($_GET[‘kw’]);}
else
{echo ucwords(‘Default Text’);}
[/insert_php]></p>I’m getting the button that shows the text [insert_php} so apparently the code is not running.
I know the code works on my site as I’ve entered this into a page.
I might also add that above code is being run in a TEXT widget.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Inserting dynamic text in a form button’ is closed to new replies.