1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

it looks simple ...but many php godfathers could not solve it,can you solve this?

Discussion in 'PHP' started by sriducati, Jan 2, 2010.

  1. #1
    here is a php code of index.php
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href = "../../fonts.css" rel="stylesheet" type="text/css" />
    <title>testing</title>
    
    <style type="text/css">
    
    
    table.navbar td a{
       display: block;
       width: 4px;
       height: 4px;
       padding: 4px;
       text-decoration: none;
    }
    
    body {
    	background-color: #EFEFEF;
    }
    </style>
    <script type="text/javascript">
    function clickBG(text){
    
    var obj = document.getElementById('fontcolor');
    obj.value = text;
    
    
    
    
    }
    function clickBG2(text){
    
    var obj2 = document.getElementById('bgcolor');
    obj2.value = text;
    
    
    
    
    }
    
    
    </script>
    
    
    </head>
    
    <body>
    
      <?php
    
    	include "config.php";
    
    	if($_GET["dpic"]!=''){//deleting picture
    	
    		//unlink($_GET["dpic"]);
    		//permission problem
    	
    	
    	}
    
    
    	?>
    	<table width="800" border="0" align="center" bgcolor="#FFFFFF" class="dabela2crna">
          <tr>
            <td class="style17"></td>
          </tr>
    </table>
    	<table width="800" border="0" align="center" bgcolor="#FFFFFF" class="dabela2crna">
          <tr>
            <td width="364" valign="top"><?php
    	
    	echo('<form id="form1" name="form1" method="post" action="pictext.php">');
    	echo('<table width="40%" border="0" align="center">');
      
    	$i = 0;
    	if (is_dir($font_dir)) {
        if ($dh = opendir($font_dir)) {
            while (($file = readdir($dh)) !== false) {
    
    
    			$filetype = pathinfo($font_dir.$file);
    			if($filetype['extension']=='png'){
    				$i++;
    				if($filetype['filename']==$_GET["font"])
    				echo('<tr>
    				<label>
    				<td width="5%" valign="middle"><input name="radiobutton" type="radio" value="'.$filetype['filename'].'" checked="checked"/></label></td>
    				
    				<td width="95%"><img src = "'.$font_dir.$filetype['filename'].'.png"/></td>
    				
    				</tr>');
    				else 
    				echo('<tr>
    				<label>
    				<td width="5%" valign="middle"><input name="radiobutton" type="radio" value="'.$filetype['filename'].'" /></label></td>
    				
    				<td width="95%"><img src = "'.$font_dir.$filetype['filename'].'.png"/></td>
    				
    				</tr>');
    			}
    
    		}
    	
    	}
    	
    	}
    
    
    
    	echo('</table>');
    	if($i==0) echo('No fonts Installed!');
    
    ?></td>
            <td width="426" valign="top"><span class="style15">Font size</span> 
    	<label>
    	<?php
    	if(isset($_GET["fontsize"]))
    		$fontsize = $_GET["fontsize"];
    	else $fontsize = 30;
    	 ?>
    	<input name="fontsize" type="text" value="<?=$fontsize?>" />
    	</label>
    	<span class="style2">max font size is 200</span><br/>
    	<label>
    	<?php
    	if(isset($_GET["pictext"]))
    		$pictext = $_GET["pictext"];
    	else $pictext = '';
    	?>
    	<span class="style15">Text</span>: <input type="text" name="pictext" value = "<?=$pictext?>"/>
    	</label>
    	
    	
    	
    
    
        <span class="style2">max 50 char</span><br/>
    <span class="style15">Font color #</span>
    <label>
    <?php
    if(isset($_GET["fontcolor"]))
    		$fontcolor= $_GET["fontcolor"];
    	else $fontcolor = '000000';
    ?>
    <input name="fontcolor" type="text" id="fontcolor" value="<?=$fontcolor?>"/>
    </label> 
    
    <table border="0" class="navbar">
      <tr>
        <td bgcolor="#FFFFFF"><a href = "#" onclick="clickBG('FFFFFF');"></a></td>
        <td bgcolor="#000000"><a href = "#" onclick="clickBG('000000');"></a></td>
        <td bgcolor="#003300"><a href = "#" onclick="clickBG('003300');"></a></td>
        <td bgcolor="#006600"><a href = "#" onclick="clickBG('006600');"></a></td>
        <td bgcolor="#009900"><a href = "#" onclick="clickBG('009900');"></a></td>
        <td bgcolor="#00CC00"><a href = "#" onclick="clickBG('00CC00');"></a></td>
    	<td bgcolor="#FF0000"><a href = "#" onclick="clickBG('FF0000')"></a></td>
        <td bgcolor="#FF3300"><a href = "#" onclick="clickBG('FF3300')"></a></td>
        <td bgcolor="#FF6600"><a href = "#" onclick="clickBG('FF6600')"></a></td>
        <td bgcolor="#FF9900"><a href = "#" onclick="clickBG('FF9900')"></a></td>
        <td bgcolor="#FFCC00"><a href = "#" onclick="clickBG('FFCC00')"></a></td>
        <td bgcolor="#FFFF00"><a href = "#" onclick="clickBG('FFFF00')"></a></td>
      </tr>
      <tr>
        <td bgcolor="#333333"><a href = "#" onclick="clickBG('333333')"></a></td>
        <td bgcolor="#000033"><a href = "#" onclick="clickBG('000033')"></a></td>
        <td bgcolor="#003333"><a href = "#" onclick="clickBG('003333')"></a></td>
        <td bgcolor="#006633"><a href = "#" onclick="clickBG('006633')"></a></td>
        <td bgcolor="#009933"><a href = "#" onclick="clickBG('009933')"></a></td>
        <td bgcolor="#00CC33"><a href = "#" onclick="clickBG('00CC33')"></a></td>
    	<td bgcolor="#FF0033"><a href = "#" onclick="clickBG('FF0033')"></a></td>
        <td bgcolor="#FF3333"><a href = "#" onclick="clickBG('FF3333')"></a></td>
        <td bgcolor="#FF6633"><a href = "#" onclick="clickBG('FF6633')"></a></td>
        <td bgcolor="#FF9933"><a href = "#" onclick="clickBG('FF9933')"></a></td>
        <td bgcolor="#FFCC33"><a href = "#" onclick="clickBG('FFCC33')"></a></td>
        <td bgcolor="#FFFF33"><a href = "#" onclick="clickBG('FFFF33')"></a></td>
      </tr>
      <tr>
        <td bgcolor="#666666"><a href = "#" onclick="clickBG('333333')"></a></td>
        <td bgcolor="#000066"><a href = "#" onclick="clickBG('000033')"></a></td>
        <td bgcolor="#003366"><a href = "#" onclick="clickBG('003333')"></a></td>
        <td bgcolor="#006666"><a href = "#" onclick="clickBG('006633')"></a></td>
        <td bgcolor="#009966"><a href = "#" onclick="clickBG('009933')"></a></td>
        <td bgcolor="#00CC66"><a href = "#" onclick="clickBG('00CC33')"></a></td>
    	 <td bgcolor="#FF0099"><a href = "#" onclick="clickBG('FF0099')"></a></td>
        <td bgcolor="#FF3399"><a href = "#" onclick="clickBG('FF3399')"></a></td>
        <td bgcolor="#FF6699"><a href = "#" onclick="clickBG('FF6699')"></a></td>
        <td bgcolor="#FF9999"><a href = "#" onclick="clickBG('FF9999')"></a></td>
        <td bgcolor="#FFCC99"><a href = "#" onclick="clickBG('FFCC99')"></a></td>
        <td bgcolor="#FFFF99"><a href = "#" onclick="clickBG('FFFF99')"></a></td>
      </tr>
      <tr>
        <td bgcolor="#999999"><a href = "#" onclick="clickBG('999999')"></a></td>
        <td bgcolor="#000099"><a href = "#" onclick="clickBG('000099')"></a></td>
        <td bgcolor="#0000CC"><a href = "#" onclick="clickBG('0000CC')"></a></td>
        <td bgcolor="#006699"><a href = "#" onclick="clickBG('006699')"></a></td>
        <td bgcolor="#009999"><a href = "#" onclick="clickBG('009999')"></a></td>
        <td bgcolor="#00CC99"><a href = "#" onclick="clickBG('00CC99')"></a></td>
    	 <td bgcolor="#990099"><a href = "#" onclick="clickBG('990099')"></a></td>
        <td bgcolor="#993399"><a href = "#" onclick="clickBG('993399')"></a></td>
        <td bgcolor="#996699"><a href = "#" onclick="clickBG('996699')"></a></td>
        <td bgcolor="#999999"><a href = "#" onclick="clickBG('999999')"></a></td>
        <td bgcolor="#99CC99"><a href = "#" onclick="clickBG('99CC99')"></a></td>
        <td bgcolor="#99FF99"><a href = "#" onclick="clickBG('99FF99')"></a></td>
      </tr>
    </table>
    
    <span class="style15">Background color   #</span>
    <label>
    <?php
    if(isset($_GET["bgcolor"]))
    		$bgcolor= $_GET["bgcolor"];
    	else $bgcolor = 'FFFFFF';
    ?>
    <input name="bgcolor" type="text" id="bgcolor" value="<?=$bgcolor?>"/>
    </label> 
    
    <table border="0" class="navbar">
      <tr>
        <td bgcolor="#FFFFFF"><a href = "#" onclick="clickBG2('FFFFFF');"></a></td>
        <td bgcolor="#000000"><a href = "#" onclick="clickBG2('000000');"></a></td>
        <td bgcolor="#003300"><a href = "#" onclick="clickBG2('003300');"></a></td>
        <td bgcolor="#006600"><a href = "#" onclick="clickBG2('006600');"></a></td>
        <td bgcolor="#009900"><a href = "#" onclick="clickBG2('009900');"></a></td>
        <td bgcolor="#00CC00"><a href = "#" onclick="clickBG2('00CC00');"></a></td>
    	<td bgcolor="#FF0000"><a href = "#" onclick="clickBG2('FF0000')"></a></td>
        <td bgcolor="#FF3300"><a href = "#" onclick="clickBG2('FF3300')"></a></td>
        <td bgcolor="#FF6600"><a href = "#" onclick="clickBG2('FF6600')"></a></td>
        <td bgcolor="#FF9900"><a href = "#" onclick="clickBG2('FF9900')"></a></td>
        <td bgcolor="#FFCC00"><a href = "#" onclick="clickBG2('FFCC00')"></a></td>
        <td bgcolor="#FFFF00"><a href = "#" onclick="clickBG2('FFFF00')"></a></td>
      </tr>
      <tr>
        <td bgcolor="#333333"><a href = "#" onclick="clickBG2('333333')"></a></td>
        <td bgcolor="#000033"><a href = "#" onclick="clickBG2('000033')"></a></td>
        <td bgcolor="#003333"><a href = "#" onclick="clickBG2('003333')"></a></td>
        <td bgcolor="#006633"><a href = "#" onclick="clickBG2('006633')"></a></td>
        <td bgcolor="#009933"><a href = "#" onclick="clickBG2('009933')"></a></td>
        <td bgcolor="#00CC33"><a href = "#" onclick="clickBG2('00CC33')"></a></td>
    	<td bgcolor="#FF0033"><a href = "#" onclick="clickBG2('FF0033')"></a></td>
        <td bgcolor="#FF3333"><a href = "#" onclick="clickBG2('FF3333')"></a></td>
        <td bgcolor="#FF6633"><a href = "#" onclick="clickBG2('FF6633')"></a></td>
        <td bgcolor="#FF9933"><a href = "#" onclick="clickBG2('FF9933')"></a></td>
        <td bgcolor="#FFCC33"><a href = "#" onclick="clickBG2('FFCC33')"></a></td>
        <td bgcolor="#FFFF33"><a href = "#" onclick="clickBG2('FFFF33')"></a></td>
      </tr>
      <tr>
        <td bgcolor="#666666"><a href = "#" onclick="clickBG2('333333')"></a></td>
        <td bgcolor="#000066"><a href = "#" onclick="clickBG2('000033')"></a></td>
        <td bgcolor="#003366"><a href = "#" onclick="clickBG2('003333')"></a></td>
        <td bgcolor="#006666"><a href = "#" onclick="clickBG2('006633')"></a></td>
        <td bgcolor="#009966"><a href = "#" onclick="clickBG2('009933')"></a></td>
        <td bgcolor="#00CC66"><a href = "#" onclick="clickBG2('00CC33')"></a></td>
    	<td bgcolor="#FF0099"><a href = "#" onclick="clickBG2('FF0099')"></a></td>
        <td bgcolor="#FF3399"><a href = "#" onclick="clickBG2('FF3399')"></a></td>
        <td bgcolor="#FF6699"><a href = "#" onclick="clickBG2('FF6699')"></a></td>
        <td bgcolor="#FF9999"><a href = "#" onclick="clickBG2('FF9999')"></a></td>
        <td bgcolor="#FFCC99"><a href = "#" onclick="clickBG2('FFCC99')"></a></td>
        <td bgcolor="#FFFF99"><a href = "#" onclick="clickBG2('FFFF99')"></a></td>
      </tr>
      <tr>
        <td bgcolor="#999999"><a href = "#" onclick="clickBG2('999999')"></a></td>
        <td bgcolor="#000099"><a href = "#" onclick="clickBG2('000099')"></a></td>
        <td bgcolor="#0000CC"><a href = "#" onclick="clickBG2('0000CC')"></a></td>
        <td bgcolor="#006699"><a href = "#" onclick="clickBG2('006699')"></a></td>
        <td bgcolor="#009999"><a href = "#" onclick="clickBG2('009999')"></a></td>
        <td bgcolor="#00CC99"><a href = "#" onclick="clickBG2('00CC99')"></a></td>
    	<td bgcolor="#990099"><a href = "#" onclick="clickBG2('990099')"></a></td>
        <td bgcolor="#993399"><a href = "#" onclick="clickBG2('993399')"></a></td>
        <td bgcolor="#996699"><a href = "#" onclick="clickBG2('996699')"></a></td>
        <td bgcolor="#999999"><a href = "#" onclick="clickBG2('999999')"></a></td>
        <td bgcolor="#99CC99"><a href = "#" onclick="clickBG2('99CC99')"></a></td>
        <td bgcolor="#99FF99"><a href = "#" onclick="clickBG2('99FF99')"></a></td>
      </tr>
    </table>
    <br/>
    <span class="style15">Text shadow :</span> 
    <label><span class="style1"></span>
    <input name="radiobutton3" type="radio" value="0" <?php if($_GET["shadow"]==0 || !isset($_GET["shadow"])) echo('checked="checked"');?> />
    <span class="style2">no</span></label>
    <label>
    <input name="radiobutton3" type="radio" value="1" <?php if($_GET["shadow"]==1) echo('checked="checked"');?>/>
    <span class="style2">yes</span></label><br/> 
    <span class="style15">Picture border :</span>
    <label>
    <input name="radiobutton4" type="radio" value="0" <?php if($_GET["border"]==0 || !isset($_GET["border"])) echo('checked="checked"');?> />
    <span class="style2">no</span></label>
    <label>
    <input name="radiobutton4" type="radio" value="1" <?php if($_GET["border"]==1 ) echo('checked="checked"');?>/>
    <span class="style2">yes</span></label><br/>
    <span class="style15">Move text up/down</span>
    <label>
    <select name="baseline">
      <option value="0" <?php if($_GET["baseline"]==0 || !isset($_GET["baseline"])) echo('selected="selected"');?>>0</option>
      <option value="-0.05" <?php if($_GET["baseline"]==-0.05) echo('selected="selected"');?>>5</option>
      <option value="-0.1" <?php if($_GET["baseline"]==-0.1) echo('selected="selected"');?>>10</option>
      <option value="-0.15" <?php if($_GET["baseline"]==-0.15) echo('selected="selected"');?>>15</option>
      <option value="-0.20" <?php if($_GET["baseline"]==-0.20) echo('selected="selected"');?>>20</option>
      <option value="0.05" <?php if($_GET["baseline"]==0.05) echo('selected="selected"');?>>-5</option>
      <option value="0.1" <?php if($_GET["baseline"]==0.1) echo('selected="selected"');?>>-10</option>
      <option value="0.15" <?php if($_GET["baseline"]==0.15) echo('selected="selected"');?>>-15</option>
      <option value="0.20" <?php if($_GET["baseline"]==0.20) echo('selected="selected"');?>>-20</option>
    </select>
    </label> 
     <span class="style2">%</span>
     <p><?php echo('<label>
       <input type="submit" name="Submit" value="Submit" /></label>');
    	echo('</form>');?></p></td>
          </tr>
    </table>
    
    
    </body>
    </html> 
    Code (markup):
    index page looks like
    [​IMG]

    when the submit button is clicked it displays

    [​IMG]

    now can you edit the php code and provide 1)background image as option?so that when the output is displayed text should be written on that backgroung image...:confused:
    2)one more text box(below the first text box) as option so that when user writes anything on the second text box and clicks the submit button,the second texts enterd should be on the second line(new line) below the first text ...
    test your php skills...:)
     
    sriducati, Jan 2, 2010 IP
  2. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    not even a single php programmer here?
     
    sriducati, Jan 2, 2010 IP
  3. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Lol. Two hours isn't that much time to give if you're respecting a reply.

    The first statement would have an image drawn as the background, then the text applied on top of it.

    The second statement should require some type of algorithm to solve spacing issues. Then, you would use \r\n to signify a line break.
     
    CodedCaffeine, Jan 2, 2010 IP
  4. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    welll am still waiting to have solution ...ha thanks for your reply codedcaffeine..
     
    sriducati, Jan 3, 2010 IP
  5. masterofweb

    masterofweb Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    u pay for this????????????????????????????
     
    masterofweb, Jan 3, 2010 IP
  6. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    well can u solve this ???
     
    sriducati, Jan 4, 2010 IP
  7. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #7
    There is nothing to solve, there is work to be done...

    I will do this if you want, I require a copy of your script, which I will alter, show you a demo and then we can agree on a price. Send me a PM if your interested
     
    MyVodaFone, Jan 4, 2010 IP
  8. Izonedig

    Izonedig Member

    Messages:
    150
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #8
    for the second point:

    This is your code:
    
    <label>
    	<?php
    	if(isset($_GET["pictext"]))
    		$pictext = $_GET["pictext"];
    	else $pictext = '';
    	?>
    	<span class="style15">Text</span>: <input type="text" name="pictext" value = "<?=$pictext?>"/>
    	</label>
    
    Code (markup):
    Make it like this:
    
    	<label>
    	<?php
    	if ((isset($_GET["pictext"])) and (isset($_GET["pictext2"])) )
    		$pictext = trim($_GET["pictext"])."
    ".trim($_GET["pictext2"]);
    	else $pictext = '';
    	?>
    	<span class="style15">Text</span>: <input type="text" name="pictext" value = "<?=$pictext?>"/><br />
    	<span class="style15">Text</span>: <input type="text" name="pictext2"/>
    	</label>
    
    Code (markup):
    NOTE: there is a line break in:
    $pictext = $_GET["pictext"]."
    ".$_GET["pictext2"];

    I don't understand the first point.
    Good luck.
     
    Izonedig, Jan 4, 2010 IP
  9. marshall_26

    marshall_26 Peon

    Messages:
    82
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    lol right........ your creative I'll give you that!

    I'll "solve" it for $150 ;)
     
    Last edited: Jan 4, 2010
    marshall_26, Jan 4, 2010 IP
  10. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10

    hello Izonedig you are creative without expecting anything you are trying to solve the problem...am proud of you ....

    well here is my first point.
    1)i need to add background image as an option just like background color.
    so that when a user selects background image ...the output text should be on the background image....

    forums need a php guru like you....i will get back to you after checking out the script....am expecting your response....
     
    Last edited by a moderator: Jan 5, 2010
    sriducati, Jan 5, 2010 IP
  11. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    hello Izonedig i just applied your code ..it created a one more text box but it failed to display second text entered in the second text box...anyways thanks for trying....
     
    sriducati, Jan 5, 2010 IP
  12. Izonedig

    Izonedig Member

    Messages:
    150
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #12
    replace this:
    <span class="style15">Text</span>: <input type="text" name="pictext2"/>
    by this
    <span class="style15">Text</span>: <input type="text" name="pictext2" value = "<?php echo @$_GET['pictext2']; ?>"/>
    in the new code, and let me know.

    About the first point, it should be simple using GD library, I don't know much about it, so just google a litte :)
     
    Izonedig, Jan 5, 2010 IP
  13. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13

    i think there is a problem in other file where i need to post pictext and pictext2...

    please check it out..

    $pictext = [$_POST['pictext'];

    i tried in this way but did not work

    $pictext=$_post['pictext','pictext2'];

    can you please edit this code so that it should post both pictext and pictext2 ???
     
    sriducati, Jan 5, 2010 IP
  14. Izonedig

    Izonedig Member

    Messages:
    150
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #14
    $pictext=$_POST['pictext'].'
    '.$_POST['pictext2'];

    I didn't know you have another file. So pictext.php redirect you again to this page or what ?
     
    Izonedig, Jan 5, 2010 IP
  15. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    this thread made me to learn many lots of php codes...thanks to everyone who has posted replies
     
    sriducati, Jan 6, 2010 IP
  16. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    hello Izonedig i applied all ur codes...
    it is displaying 2 text box
    and if i enter "sri" in text box1 and "nivas" in textbox2 ,the output text shows "srinivas" ,but how can i put line break between two texts entered?i am not sure where to put nl2br in the code above....can you plzz help me with this?

    and regarding my first point is it possible to add background image without using GD?
     
    sriducati, Jan 6, 2010 IP
  17. Izonedig

    Izonedig Member

    Messages:
    150
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #17
    In this code:
    $pictext=$_POST['pictext'].'
    '.$_POST['pictext2'];
    There is already a line break, it's different that: $pictext=$_POST['pictext'].''.$_POST['pictext2']; . They are TWO lines to copy.

    If that does not work, try this: $pictext=$_POST['pictext'].'\r\n'.$_POST['pictext2']; or this $pictext=$_POST['pictext'].'\n'.$_POST['pictext2']; or this $pictext=$_POST['pictext'].'<br />'.$_POST['pictext2']; it all depends on how your website/script does work now.

    I don't know about graphic and images use in php ...
    But I want to ask, is the text and the background should be in same image ? or you mean by backgound a html background, I don't understand how your website is currently working, let me see it.
     
    Izonedig, Jan 6, 2010 IP
  18. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    hello Izonedig ...thanks alot for your response

    well line break did not work by any of the methods...
    $pictext=$_POST['pictext'].' '.$_POST['pictext2']; this works great but line break fails..

    $pictext=$_POST['pictext'].'
    '.$_POST['pictext2']; this will not display any any image as an output(empty screen)

    $pictext=$_POST['pictext'].'\r\n'.$_POST['pictext2']; this takes \r\n as an input it displays "text1|r|ntext2

    $pictext=$_POST['pictext'].'\n'.$_POST['pictext2']; same problem... displays "text1|ntext2

    $pictext=$_POST['pictext'].'<br />'.$_POST['pictext2']; i got an error message "Warning: imagepng() [function.imagepng]: Unable to open 'userpics/text1<br />text2158.png' for writing: No such file or directory in /home/ultimate/public_html/testing/pictext.php on line 144"


    ha i have pm"d you the demo link ...plz check it out...

    well secondly am speaking about the background of output image displayed not the html page background ...
    ex: check it out the above posted image "testing" which has the background color yellow in a similar way i need 2 put background image as an option, so that users should either choose background color or background image( default images what i have uploaded) ...after processing, choosen font should be on the background color or on the background image...
     
    Last edited by a moderator: Jan 6, 2010
    sriducati, Jan 6, 2010 IP
  19. Izonedig

    Izonedig Member

    Messages:
    150
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #19
    Ah, ok. The problem is in pictext.php, it's there where php makes the image, so it's there where you have to do changes too.

    by the way, I can't see your website, nor your above posted image "testing". I think my ISP block it, does your website contain something wrong ?
     
    Izonedig, Jan 6, 2010 IP
  20. sriducati

    sriducati Peon

    Messages:
    287
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    hello Izonedig my website is just related to music videos ...how can the isp block my website? :( is it possible to make them unblock?right now which country u r in?
     
    sriducati, Jan 6, 2010 IP