Jump to content

Jiblob

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

About Jiblob

  • Birthday 02/15/1990

Contact Methods

  • AIM
    coultonLUKE
  • MSN
    mynte@msn.com
  • Website URL
    http://www.jiblob.com

Profile Information

  • Gender
    Not Telling
  • Location
    Lancashire, UK

Jiblob's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I have a set of checkboxes: - <form post="<?php $_SERVER['PHP_SELF']; ?>" action="post"> Option 1<input type="checkbox" name="fruit[]" value="pear"> Option 2<input type="checkbox" name="fruit[]" value="apple"> Option 3<input type="checkbox" name="fruit[]" value="grape"> Option 4<input type="checkbox" name="fruit[]" value="orange"> Option 5<input type="checkbox" name="fruit[]" value="tomato"> </form> How can I extract the numbers of them all in relation to the checkboxes. EG. Grape, (Option) 1 I want to be able to automatically number them without the need for naming them all individually (EG. name="fruit_apple") because I want to allow for unlimited numbers of them. Thanks, - Luke
  2. Thanks for the help ShogunWarrior, however, I did not fix it like this. I was stupid really, there was no need for the !strlen "NOT MORE THAN OR EQUAL TO 25", because this is just equivalent to strlen "MORE THAN 25". Silly me! haha
  3. Hello, I wish to have the verification for my form in in the following form: - if (!$blah) { echo "ERROR!"; } else { echo "FINE!"; } ... everything was fine, but then i put used a strlen(); to test that a string is NOT more than or equal to 25, so take this code for instance: - <?php $var = "111111111111111111111111111111"; // 30 Chars Long Var if ((!strlen($var) <= 25)) { echo "Error"; } else { echo "Fine"; } ?> For some reason it tells me that there is an error at any length, when it's only supposed say there is an error if it is over 25 characters in length. Help ??? - Luke
  4. Rhetorical Question... apparently it's possible to change the eval() for echo and it will show me the code... I haven't managed to get this theory in to practice
  5. Hello, I have just bought a script off a company. They have decrypted the class, making it impossible for me to know what code it is that I am running or to fully integrate it in to my site. Here's what it looks like: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]if(!function_exists('findsysfolder')){function findsysfolder($fld){$fld1=dirname($fld);$fld=$fld1.'/scopbin';clearstatcache();if(!is_dir($fld))return findsysfolder($fld1);else return $fld;}}require_once(findsysfolder(__FILE__).'/911006.php'); $REXISTHEDOG4FBI("8541EB75D3956449047EA6AE75337415AC4A68CBB1BC16FEA2769327ABBF05680D978A350362754371D6ABFE6513761FA2DD93E984AF55EDAD7A2EBC2F825CA7FD07199B81345FD21 73890B692C2 B44F453FE5080B12DA556216D35698FB3E411 82FE26DED E3595C77EE448C0FD4B102A 71E7ADB7BD4 A68EA6A8DEF1ACA 228D2C51FB76E9D85"); eval(y0666f0acdeed38d4cd9084ade1739498('B69BBFC0CD739DF84C',$REXISTHEDOG4FBI));[/quote] Is it possible for me to decrypt this code? I totally respect why they do it, to stop the distribution of the product, but I just need it so that I can actually see what the code it so that I can USE what I've paid for! I don't know how it works... so How can I possibly integrate it in to my current site? Thanks for any help - Luke [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  6. Hello again. Thanks again for any help. I ended up making a code that converts the chanracters to HTML codes EG: #&105 Then I changed them to images using preg_replace. Thank you again - Luke ;) - - Solved - -
  7. Thanks for the idea Wisewood, It is a good idea, However I wish to continue on the replacing thread as I have taken so long creating the images for the title and I feel that it will be more effective than using a big rendered image. Could anyone point me further in to the right direction as to how to how I can replace each individual letter to an image tag? Thanks
  8. OK, I fully understand what is happening now by the way it is in a infinite loop. I am quite advanced with PHP, but I have not really delved in to the use of preg_replace(); and ereg(); functions so the regex page is really quite confusing as to how I would use it to solve this problem. If you could give me a further push in the right dierection that would be great. Thanks again - Luke
  9. Hi, I wish to create titles with the use of images insead of embedded fonts, simply to keep the style of font that I have been using throughout the rest of my site. I have set up a code which I was hoping would replace all of the letters with image tags... Here's the code I created: [code] <?php $file_path = "../"; $create_image_title = strtolower("Welcome to my site"); // The title that will be made by the images $letter[0] = "/a/"; $letter[1] = "/b/"; $letter[2] = "/c/"; $letter[3] = "/d/"; $letter[4] = "/e/"; $letter[5] = "/f/"; $letter[6] = "/g/"; $letter[7] = "/h/"; $letter[8] = "/i/"; $letter[9] = "/j/"; $letter[10] = "/k/"; $letter[11] = "/l/"; $letter[12] = "/m/"; $letter[13] = "/n/"; $letter[14] = "/o/"; $letter[15] = "/p/"; $letter[16] = "/q/"; $letter[17] = "/r/"; $letter[18] = "/s/"; $letter[19] = "/t/"; $letter[20] = "/u/"; $letter[21] = "/v/"; $letter[22] = "/w/"; $letter[23] = "/x/"; $letter[24] = "/y/"; $letter[25] = "/z/"; $image[0] = '<img src="'.$file_path.'images/titleletters/a.gif" border="0" height="40">'; $image[1] = '<img src="'.$file_path.'images/titleletters/b.gif" border="0" height="40">'; $image[2] = '<img src="'.$file_path.'images/titleletters/c.gif" border="0" height="40">'; $image[3] = '<img src="'.$file_path.'images/titleletters/d.gif" border="0" height="40">'; $image[4] = '<img src="'.$file_path.'images/titleletters/e.gif" border="0" height="40">'; $image[5] = '<img src="'.$file_path.'images/titleletters/f.gif" border="0" height="40">'; $image[6] = '<img src="'.$file_path.'images/titleletters/g.gif" border="0" height="40">'; $image[7] = '<img src="'.$file_path.'images/titleletters/h.gif" border="0" height="40">'; $image[8] = '<img src="'.$file_path.'images/titleletters/i.gif" border="0" height="40">'; $image[9] = '<img src="'.$file_path.'images/titleletters/j.gif" border="0" height="40">'; $image[10] = '<img src="'.$file_path.'images/titleletters/k.gif" border="0" height="40">'; $image[11] = '<img src="'.$file_path.'images/titleletters/l.gif" border="0" height="40">'; $image[12] = '<img src="'.$file_path.'images/titleletters/m.gif" border="0" height="40">'; $image[13] = '<img src="'.$file_path.'images/titleletters/n.gif" border="0" height="40">'; $image[14] = '<img src="'.$file_path.'images/titleletters/o.gif" border="0" height="40">'; $image[15] = '<img src="'.$file_path.'images/titleletters/p.gif" border="0" height="40">'; $image[16] = '<img src="'.$file_path.'images/titleletters/q.gif" border="0" height="40">'; $image[17] = '<img src="'.$file_path.'images/titleletters/r.gif" border="0" height="40">'; $image[18] = '<img src="'.$file_path.'images/titleletters/s.gif" border="0" height="40">'; $image[19] = '<img src="'.$file_path.'images/titleletters/t.gif" border="0" height="40">'; $image[20] = '<img src="'.$file_path.'images/titleletters/u.gif" border="0" height="40">'; $image[21] = '<img src="'.$file_path.'images/titleletters/v.gif" border="0" height="40">'; $image[22] = '<img src="'.$file_path.'images/titleletters/w.gif" border="0" height="40">'; $image[23] = '<img src="'.$file_path.'images/titleletters/x.gif" border="0" height="40">'; $image[24] = '<img src="'.$file_path.'images/titleletters/y.gif" border="0" height="40">'; $image[25] = '<img src="'.$file_path.'images/titleletters/z.gif" border="0" height="40">';     $show_title = preg_replace($letter, $image, $create_image_title); // Create Title from image letters ?> [/code] I have updated this code to one of my hosts... [a href=\"http://www.quizzer.eu/test.php\" target=\"_blank\"]HERE[/a]. As you can see it outputs nothing! I have tried reducing the amount of letters being replaced and it works fine with one. But obviously I want all of the letters replaced. Thankyou for any assistance - Luke [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /]
×
×
  • 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.