Jump to content

Kieran Menor

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by Kieran Menor

  1. Or depending on what exactly you mean, call_user_func_array might be what you are looking for.
  2. Maybe output buffering is enabled? Try calling ob_flush() before flush()
  3. And this won't suffice? $data = array(1=>"hello", 2=>"welcome"); function doSomething($array) { // $array[1] = hello , $array[2] = welcome ... etc. } doSomething($data)
  4. Well, you could just crop the MD5 hash to the desired length. Example: $forty_bits = substr($md5_hash, 0, 10); // 40 bits (10 hex digits of 4 bits each) is enough for a 10 digit decimal number $decimal = base_convert($forty_bits, 16, 10); // Convert from hexadecimal (base 16) to decimal $ten_digits = substr($decimal, 0, 10); $padded_result = str_pad($ten_digits, 10, '0', STR_PAD_LEFT); // Pad the resulting number to 10 digits, just in case
  5. Drop-down lists are like any other form elements. Alike so: <form method="POST" action="posthandler.php"> <select name="gmt"><option value="...">...</option></select> <input type="submit" /> </form> and in posthandler.php: <?php echo $_POST['gmt']; ?> It seems that in your case, all you need to do is to move the <select> element inside your <form>, and possibly add action="POST" to the <form> also.
×
×
  • 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.