Jump to content

stefani21

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Posts posted by stefani21

  1. well theres 2 other pages of php that go to this this is just my php for controlling layout and a couple other things lol so yeah it kind of is a layout question i guess . Sorry im new to the forums aswell so i might have posted in the wrong section  :-[

     

    but il try out what you said and see if it works.

  2. Helllo Every1

    well im kinda new to php and i needed some help i was working on a page all my text boxes and check boxes are at the bottom of my file and like this

    		//======================================================================
    	</script>
    
    	</head>
    <body>
    
    			<div style="margin-left: 170px">
    		<input type="checkbox" id="getitems" checked value="1">Run Plugin?  <input type="checkbox" id="sellitm" checked value="1">Sell Items?<br><br>
    		Item Name:<br><input type="text" id="itemd" value=""><br><br>How Many Cycles?:<br><input type="text" id="runtm" value="10"></div>
    			<div style="margin-left: 170px"><br>
    			 <button id="btn_save" style="color:white;background-color:#00660F;border-width:1px;border-style:solid; ">  Save settings </button>
    			</div>
    
                    ';
    
    			echo $this->ObjectTable();
    			echo '
    
    
    
    
    </body>
    </html>
    	';
        }
    }
    
    ?>

    and well i decided to do away wit one of the text boxes and use a drop down list instead that is populate from a text file

    and the only code that i could find that i was able to get working was this 1

    <?php
    
    $text = file_get_contents("itemlist.txt");
    $array = explode("\n",$text);
    echo "<select>";
    foreach ($array as $value) {
    echo "<option value='$value'>$value</option>";
    }
    echo "</select>";

     

    and the problem im having is with that one it just stays at the top of the page when loaded like i have no way to position it... and im really stuck i tried saving it in another php and i tried using <?php include(); ?> function but it did not work if any1 could help me out that would be awsome. T.I.A  :D

     

     

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