xampx Posted October 7, 2006 Share Posted October 7, 2006 Hey I am opening a myspace layouts site, and I wanted to make a form that lets everyone preview the layouts they choose.OK so here is what i have down.[code]<form action="http://digitalmusic-inc.com/prev.php" method="post" target="_blank"><textarea class="preview" type="hidden" name="preview"></textarea><input type="submit" value="Preview"></form>[/code]What I am trying to do here is let the person paste the layouts css into the textarea and then press preview and it will show them. What i dont know how to do is the php part. How can i show that information on the prev.phpI know it has something to do with echo but I dont think im doing it right. So if you can help please I would appreciate it. Quote Link to comment Share on other sites More sharing options...
printf Posted October 7, 2006 Share Posted October 7, 2006 Use that form you have, then when it gets sent to [b].../prev.php[/b] load it into the template header or load the template and use a CSS tag that points to a PHP script that dynamicly loads the the CSS data they just loaded!I attached a quick example, that I think you can follow and should be able to implement in your code, as a simple starting point.me![attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 7, 2006 Share Posted October 7, 2006 printf i read your example post it on here as it's a real eye opener for all cheers. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.