Jump to content

PHP Form with Preview for Myspace Layouts.


xampx

Recommended Posts

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.php

I 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.
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.