On Mon, 2006-02-20 at 00:25 +0000, Marian Briones wrote: > Maybe I didn't explain it right... > > I'm writing a web page generator is what I'm doing; with web > templates. > > So when I go to generate one of these sites, I enter the custoemr's > information like their text that will appear in the banner across the > top, each link name, etc. > > The template code has variables for all of these things coming off the > form. So I'm grabbing that template's code from a database table, and > what I am wanting to do is to plug all of the form's variables into > that code and write that out to a file. > > What I'm getting instead, is the file with the variable names in there > instead of the variable values. Not sure how to make it write the > variable values into the form. > > Does that make more sense?
I'm not sure exactly how to do it (it's been a while since I last used PHP to write files), but the theory is the same. You can write variable values to files. Did you forget the '$' sign at the beginning of the variable name? That's the only reason I can think of that the variable name would be written to the file instead of the value... Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/