Jump to content

jack5100nv

Members
  • Posts

    42
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jack5100nv's Achievements

Member

Member (2/5)

0

Reputation

  1. I mean the code is $languagefilename = "language/english.php"; if (file_exists($languagefilename)) include($languagefilename); else echo("<br><center><b>The file for selected language is missing from the Language folder</b></center><br>");
  2. I am using the file_exists() function to check if the file exists before including it but it always returns false If I take out the file_exists function, I can see that the include function includes the file correct without any errors. Here is the code. what am I doing wrong? $languagefilename = "language/english.php"; if (is_readable($languagefilename)) include($languagefilename); else echo("<br><center><b>The file for selected language is missing from the Language folder</b></center><br>");
  3. I want to dynamically include a file. How can I do something like: <? include('myfolder/$filename.php'); ?>
  4. Ok, I have the following code. I want the form fields with the Submit button nicely tucked in the table row with bgcolor. However, whgen I view it in Firefox or IE8, I get extra space under the form fields (see screenshot). How can I remove that extra space. I tried Including the form in div tags and stuff but no luck. echo(" <br><br> <table align='center' cellpadding='0' cellspacing='0' width='780' valign='top'> <tr> <td bgcolor='#cccccc' align='right'> <form method='post' action='test.php'> <input type='text' size='15' name='searchtext'> <select name='cat'> <option value='1'>Test1</option> <option value='2'>Test2</option> <option value='3'>Test3</option> </select> <input type='submit' value=Submit> </form> </td> </tr> </table> "); [attachment deleted by admin]
  5. Ok, I have the following code. I want the form fields with the Submit button nicely tucked in the table row with bgcolor. However, whgen I view it in Firefox or IE8, I get extra space under the form fields (see screenshot). How can I remove that extra space. I tried Including the form in div tags and stuff but no luck. <html> <body> <br><br> <table align="center" cellpadding="0" cellspacing="0" width="780" valign="top"> <tr> <td bgcolor='#cccccc' align='right'> <form method='post' action='test.php'> <input type='text' size='15' name='searchtext'> <select name='cat'> <option value='1'>Test1</option> <option value='2'>Test2</option> <option value='3'>Test3</option> </select> <input type='submit' value=Submit> </form> </td> </tr> </table> </body> </html> [attachment deleted by admin]
×
×
  • 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.