Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
HTML Generator using PhP
Old 09-24-2007, 08:46 PM HTML Generator using PhP
MGT-Evelath's Avatar
Average Talker

Posts: 21
Trades: 0
I'm attempting to format a program so it will allow the user to select the following:
  • Page Caption
  • Background Color
  • Font Color
  • Text Body
This is what I've got so far:

PHP Code:
<html>

<head>

<title>HTML Generator</title>

</head>

<?php

$background_color 
'#FFFFFF'// default WHITE background

$bluebg $_REQUEST['bluebg'];
$redbg $_REQUEST['redbg'];
$greenbg $_REQUEST['greenbg'];

if (!empty(
$bluebg))
{
switch (
$background_color)
{
case 
1:
$background_color '#0000FF';
break;

}

}

?>


<body>

Select your background color:
<form>
<input type ="radio"
       name ="bluebg"> Blue Background
<br>
<br>
<input type ="radio"
       name ="redbg"> Red Background
<br>
<br>
<input type ="radio"
       name ="greenbg"> Green Background
<br>
<br>
Select your font color:
<br>
<input type ="radio"
       name ="redfont"> Red Font
<br>
<br>

<input type="submit">


</form>
</body>

</html>
Any assistance would be great.
MGT-Evelath is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-24-2007, 08:58 PM Re: HTML Generator using PhP
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Do you mean that you want it to upload LIVE as the user clicks the radio button? If that's what you want, then you would need to use Javascript, so the browser will do the work. Otherwise, the user will need to refresh the page for it to work.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Reply     « Reply to HTML Generator using PhP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09873 seconds with 12 queries