Jump to content


Photo

PHP Form with Preview for Myspace Layouts.


  • Please log in to reply
2 replies to this topic

#1 xampx

xampx
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 07 October 2006 - 09:09 AM

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

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.

#2 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 07 October 2006 - 01:53 PM

Use that form you have, then when it gets sent to .../prev.php 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]

#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 07 October 2006 - 01:57 PM

printf i read your example post it on here as it's a real eye opener for all cheers.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users