Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. gcrighton

    file_exists() error

    Hi Anikin, Ok as far as I know the absolute file system path on the clients ISP is included below (this is the path used for php includes for example): // Foto // if (file_exists(&quot;/u/web/circul/production/img/retratos/&quot;.$row['ID'].&quot;.jpg&quot;)) { echo (&quot;<img...
  2. gcrighton

    PHP auto-email response question

    Hi, // EMAIL FUNCTION function send_mail($recipient, $subject, $email, $content) { if (!$mu) { mail($recipient, $subject, $content, &quot;From: $email\n&quot;); } } This uses an external file as a template for the autoresponder allowing variables to be read from the template file...
  3. gcrighton

    file_exists() error

    Hi, I'm trying to use the file_exists() function to load an image but get repeated errors. Code is as follows: // Foto // if (file_exists(&quot;/production/img/retratos/&quot;.$row['ID'].&quot;.jpg&quot;)) { ?> <img src='/production/img/retratos/<?PHP echo $row['ID'] ?>.jpg&quot;'...
  4. gcrighton

    Syntax errors in form validation

    Hi Starway, Thanks for your comments - the validation which included the language check no longer causes a problem with the extra ()'s included. The radio check still generates the taskbar error (although as before it does in fact perform the validation). The error is clearly pinpointed here...
  5. gcrighton

    Syntax errors in form validation

    Hi, BUG 1. I'm using the following code to validate a group of 4 radio buttons. The validation works but when &quot;submit&quot; is finally entered after all validation a pesky taskbar error displays before the user is taken to the next page. It appears to be syntax related (I think). Any...
  6. gcrighton

    Search &amp; replace external file with PHP?

    Hi, I need to perform a search and replace on a SQL file with rows as follows: INSERT INTO productos VALUES(&quot;10272&quot;,&quot;El...
  7. gcrighton

    Including variables in a mail template

    Hey Anikin, $mail_en = file(&quot;mail_en.php&quot;); $mail_en = join(&quot;&quot;, $mail_en); eval(&quot;\$content_en =\&quot;$mail_en\&quot;;&quot;); Is the bees knees - thanks for your help! Gary
  8. gcrighton

    Including variables in a mail template

    Hi, My formprocessor script uses the file() function to read the text for an autoresponder email. It reads the text no problem but is not parsing the PHP variables contained in the file. How can I do this if I want to include the user name in the external template? $mailtext2 =...
  9. gcrighton

    JS error when &quot;submit&quot; clicked

    Hi, I'm getting an error displayed in the task bar when I click submit in a form (only when submit is clicked). The form processes and redirects as normal, and at such a speed that I'm unable to read the error type that flashes up. Code I'm using is included below. Can anyone shed any light...

Part and Inventory Search

Back
Top