Code Comments
Programming Forum and web based access to our favorite programming groups.Hello,
I'm considering Smarty to use on a web application I'm putting together,
and I had a question about how I might take this:
<html>
<body>
Name: {$name}<br>
Address: {$address}<br>
</body>
</html>
And turn it into this:
<form action="./">
<input type="text" name="name"/>
<input type="text" name="address"/>
<input type="submit"/>
</form>
...without prior knowledge of the .tpl file. I understand this could get
complicated, should there be control structures like looping or if/else,
but I'm just curious if this has been done, or perhaps it hasn't and
this is a bad idea?
Thanks,
-Dan
I'm fairly new to Smarty
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.