Captcha Image Not Showing

Hi, I am generating the Flash forms formypages, One thing i
came across is that how do i mange touse the captcha image inside
the cfform flashform, It shows no eror but dos not display the
image., can anybody had done xperimenting this thing.
the code is like this:
<cfform action="" method="post"
enctype="application/x-www-form-urlencoded" name="form1"
format="flash" width="400" skin="haloOrange" id="form1"
height="450" style="background-color:##FFFFCC; font-family:Verdana,
Arial, Helvetica, sans-serif; font-size:10px; table-layout:auto;
vertical-align:middle;">
<cfformgroup type="page" label="Add New Link">
<cfinput type="text" name="textfield" required="yes"
message="URL Value Required" validate="url"
validateat="onsubmit,onserver" label="URL of Website:" size="20"
tooltip="URL Valid Value Like
http://www.yourdoamin.com"
tabindex="1">
<cfinput type="text" name="textfield1" required="yes"
message="Title of URL" validate="noblanks"
validateat="onsubmit,onserver" label="Title of URL:" size="20"
tooltip="Name of the URL" tabindex="2">
<cftextarea required="yes" name="textfield2"
label="Description:" validate="noblanks"
validateat="OnSubmit,OnServer" message="Description Required"
tooltip="Description of the Website Required" tabindex="3"
cols="25" rows="4" wrap="virtual"> </cftextarea>
Image Verification: <cfinclude template="captcha.cfm">
<cfoutput> <img src="#easyCaptcha.IMAGE#" border="0"
height="100" width="100"/> </cfoutput> <cfinput
name="secret" type="text" label="Veriication Code:" required="yes"
size="10" message="Image Verification failed" />
<cfinput type="submit" name="submit" value="Add the Link"
tabindex="4" validateat="onSubmit"
validate="submitonce">
</cfformgroup>
</cfform>
</body>

I'd suggest moving the include for captcha.cfm above the
<cfform tag
Then try this for including the captcha image in the form.
<cfformitem type="html" height="100"
width="100"><p><img
src="#easyCaptcha.Image#"/></p></cfformitem>

Similar Messages

  • Craigslist captcha image not showing with Firefox 4.

    It was working fine up until about two weeks ago. It works fine in Chrome.

    See:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    * You can see the permissions for the domain in the current tab in Tools > Page Info > Permissions
    * You can check the exceptions in Tools > Options > Content: Load Images > Exceptions
    * You can check the Tools > Page Info > Media tab for blocked images (scroll through all the images)
    There are also extensions (Tools > Add-ons > Extensions) that can block images.
    See:
    * [[Troubleshooting extensions and themes]]

  • BLOB image not shows in JSP page!!

    Hi Dear all,
    I had tried to configure how to show BLOB image to jsp page . The code are works fine and servlet works ok but image can not show only. can you help me that what need to be added. Please help me.
    Can any experts help me? BLOB image not shows in JSP page. I am using ADF11g/DB 10gR2.
    My as Code follows:
    _1. Servlet Config_
        <servlet>
            <servlet-name>images</servlet-name>
            <servlet-class>his.model.ClsImage</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>images</servlet-name>
            <url-pattern>/render_images</url-pattern>
        </servlet-mapping>
      3. class code
    package his.model;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Iterator;
    import java.util.Map;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.domain.BlobDomain;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    public class ClsImage extends HttpServlet
      //private static final Log LOG = LogFactory.getLog(ImageServlet.class);
      private static final Log LOG = LogFactory.getLog(ClsImage.class);
      public void init(ServletConfig config)
        throws ServletException
        super.init(config);
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response)
        throws ServletException, IOException
        System.out.println("GET---From servlet============= !!!");
        String appModuleName = "his.model.ModuleAssetMgt";//this.getServletConfig().getInitParameter("ApplicationModuleName");
        String appModuleConfig = "TempModuleAssetMgt";//this.getServletConfig().getInitParameter("ApplicationModuleConfig");
        String voQuery ="select ITEM_IMAGE from MM_ITEMIMAGE where IMAGE_NO = 'P1000000000006'" ;// 'P1000000000006' this.getServletConfig().getInitParameter("ImageViewObjectQuery");
        String mimeType = "jpg";//this.getServletConfig().getInitParameter("gif");
        //?IMAGE_NO='P1000000000006'
        //TODO: throw exception if mandatory parameter not set
        ApplicationModule am =
          Configuration.createRootApplicationModule(appModuleName, appModuleConfig);
          ViewObject vo =  am.createViewObjectFromQueryStmt("TempView2", voQuery);
        Map paramMap = request.getParameterMap();
        Iterator paramValues = paramMap.values().iterator();
        int i=0;
        while (paramValues.hasNext())
          // Only one value for a parameter is expected.
          // TODO: If more then 1 parameter is supplied make sure the value is bound to the right bind  
          // variable in the query! Maybe use named variables instead.
          String[] paramValue = (String[])paramValues.next();
          vo.setWhereClauseParam(i, paramValue[0]);
          i++;
       System.out.println("before run============= !!!");
        // Run the query
        vo.executeQuery();
        // Get the result (only the first row is taken into account
        System.out.println("after run============= !!!");
        Row product = vo.first();
        //System.out.println("============"+(BlobDomain)product.getAttribute(0));
        BlobDomain image = null;
        // Check if a row has been found
        if (product != null)
          System.out.println("onside product============= !!!");
           // We assume the Blob to be the first a field
           image = (BlobDomain) product.getAttribute(0);
           //System.out.println("onside  run product============= !!!"+image.toString() +"======="+image );
           // Check if there are more fields returned. If so, the second one
           // is considered to hold the mime type
           if ( product.getAttributeCount()> 1 )
              mimeType = (String)product.getAttribute(1);       
        else
          //LOG.warn("No row found to get image from !!!");
          LOG.warn("No row found to get image from !!!");
          return;
        System.out.println("Set Image============= !!!");
        // Set the content-type. Only images are taken into account
        response.setContentType("image/"+ mimeType+ "; charset=windows-1252");
        OutputStream os = response.getOutputStream();
        InputStream is = image.getInputStream();
        // copy blob to output
        byte[] buffer = new byte[4096];
        int nread;
        while ((nread = is.read(buffer)) != -1)
          os.write(buffer, 0, nread);
          //System.out.println("Set Image============= loop!!!"+(is.read(buffer)));
        os.close();
        // Remove the temporary viewobject
        vo.remove();
        // Release the appModule
        Configuration.releaseRootApplicationModule(am, false);
    } 3 . Jsp Tag
    <af:image source="/render_images" shortDesc="Item"/>  Thanks.
    zakir
    ====
    Edited by: Zakir Hossain on Apr 23, 2009 11:19 AM

    Hi here is solution,
    later I will put a project for this solution, right now I am really busy with ADF implementation.
    core changes is to solve my problem:
        byte[] buffer = new byte[image.getBufferSize()];
        int nread;
        vo.remove();
        while ((nread = is.read(buffer)) != -1) {
          os.write(buffer);
        }All code as below:
    Servlet Code*
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response) throws ServletException,
                                                             IOException {
        String appModuleName =
          "his.model.ModuleAssetMgt";
        String appModuleConfig =
          "TempModuleAssetMgt";
      String imgno = request.getParameter("imgno");
        if (imgno == null || imgno.equals(""))
          return;
        String voQuery =
          "select ITEM_IMAGE from MM_ITEMIMAGE where IMAGE_NO = '" + imgno + "'";
        String mimeType = "gif";
        ApplicationModule am =
          Configuration.createRootApplicationModule(appModuleName,
                                                    appModuleConfig);
        am.clearVOCaches("TempView2", true);
        ViewObject vo = null;
        String s;
          vo = am.createViewObjectFromQueryStmt("TempView2", voQuery);
        // Run the query
        vo.executeQuery();
        // Get the result (only the first row is taken into account
        Row product = vo.first();
        BlobDomain image = null;
        // Check if a row has been found
        if (product != null) {
          // We assume the Blob to be the first a field
          image = (BlobDomain)product.getAttribute(0);
          // Check if there are more fields returned. If so, the second one
          // is considered to hold the mime type
          if (product.getAttributeCount() > 1) {
            mimeType = (String)product.getAttribute(1);
        } else {
          LOG.warn("No row found to get image from !!!");
          return;
        // Set the content-type. Only images are taken into account
        response.setContentType("image/" + mimeType);
        OutputStream os = response.getOutputStream();
        InputStream is = image.getInputStream();
        // copy blob to output
        byte[] buffer = new byte[image.getBufferSize()];
        int nread;
        vo.remove();
        while ((nread = is.read(buffer)) != -1) {
          os.write(buffer);
        is.close();
        os.close();
        // Release the appModule
    Configuration.releaseRootApplicationModule(am, true);
    }Jsp Tag
    <h:graphicImage url="/render_images?imgno=#{bindings.ImageNo.inputValue}"
                                                        height="168" width="224"/>

  • Another Images not Showing up thread

    I know there are multiple threads out there about images not showing up on the login page of application express, and I have browsed most of them without success.
    My images folder is in:
    C:\oracle\product\10.1.0\db_1\Apache\Apache\images\
    My dads.conf file has specified:
    Alias /i/ "C:\oracle\product\10.1.0\db_1\Apache\Apache\images\"
    Address of missing image in I.E. is:
    http://<host>:7777/i/htmldb/apex_logo.gif
    When I ran @apexins I specified /i/ for the virtual images directory.
    I am running Oracle Database 10gR2, with Oracle HTTP Server that came with the Oracle Database 10g Companion CD Release 2.
    I am using APEX 3.2.
    When I try to go to
    http://<host>:7777/i/
    I get:
    You don't have permission to access /i/ on this server.
    I also cannot login to APEX. When I type my username/password and click the Login button, it does nothing (nothing loads, nothing changes... nothing happens). I don't know if this is related?
    Thank you,
    ~Tom

    I found the problem -
    In my dads.conf file I had:
    Alias /i/ "C:\oracle\product\10.1.0\db_1\Apache\Apache\images\"
    When I really needed:
    Alias /i/ "C:\oracle\product\10.1.0\db_1\Apache\Apache\images/"
    Note the end slash after images changed from backslash to forward.
    Silly me.

  • Images not showing in the jlabel/jbutton

    Hello all,
    I've a package in which my cards directory is located along with all my src files and compiled classes. All my images ****.gif files are inside this directory.
    Then I've following the icon object.
    protected static JLabel lblDeck;The following code is used to get the image.
      String imgPath;
         imgPath = isImageExists("imgBG1.gif");
              if (imgPath == "")
              {     // If the image of Card Deck(imgDeck) is not Found
                   lblDeck = new JLabel();
                   lblDeck.setBackground(new Color(0, 64, 128));
                   lblDeck.setOpaque(true);
                   flagImgDeckFound = false;
              } else {
                   // If the image of Card Deck is Found
                   imgDeck     = new ImageIcon(imgPath);
                   lblDeck = new JLabel(imgDeck);
    // Check if the image exists else return "";
      protected String isImageExists(String imgName) {
              java.net.URL imgURL = getClass().getResource("cards/" + imgName);
             if (imgURL != null)
             {     return (imgURL.toString());     }
             else
                  JOptionPane.showMessageDialog(null, "File not Found: " + imgURL);
                  return "";
         }I'm still unable to get the image in the jlabel!
    When i checked the path, it is exactly returning the path of the file.
    But its neither loading the image into the jlabel nor is it returning "".
    This is just the label part i've other jbuttons also. Even they are not displaying any images.

    aLkeshP wrote:
    can everyone see this thread?
    YES FER-CHRISE-SAKE.
    Just how many times do you intend posting the same identical question?
    images not showing in the jlabel/jbutton
    Problem in imageicon
    iconImage on JButton & JLabel
    Re: images not showing in the jlabel/jbutton

  • Likely bug with external editing (in CS5 not CS6 beta) and edited image not showing back up in LR

    I have come across something strange today that I've not seen before. I'm running LR 4.0 under Win7 64-bit. I usually use Photoshop CS6 beta as my external editor, but invoke CS5 when I have to use some tools that don't support the beta. Here is the scenario:
    * I have CS5 open
    * I externally edit an image in CS5 and Save it from CS5 when I'm done
    * The edited image does not show up in LR
    * I close LR and reopen it
    * There is the edited image!
    I have duplicated this many times this evening. I don't think I've seen it when I've used CS6 beta.

    Something strange is going on because I had the behavior reported of edited image not showing up after using another filter, Nik Silver Efex Pro 2.

  • Crystal Report Images Not Showing - JSP inside /WEB-INF folder

    Hi Experts,
    I am using Crystal report for Eclipse and also using Struts2 and tiles framework combination.
    The problem is when viewing the report all I've got is red X on all images and the graph image also not showing. This is when I use tiles and my jsp is inside the web-inf folder.
    This is my struts link: href="s:url value='/report/reportOpen.action?report=1'
    I've checked that the path to the viewer generated HTML is not correct. see code below.
    src="../../../crystalreportviewers/js/crviewerinclude.js"
    But when I test to access a simple jsp viewer that resides on the web root folder, this works fine but of course this is not what I want to have. I need to have my banner and menus on top of the report page (using tiles)
    This is my jsp link: href="s:url value='/ReportViewer.jsp?report=1'
    Viewer generated HTML below.
    src="crystalreportviewers/js/crviewerinclude.js"
    This might be a common problem and that you can share to me your solution.
    Note: I removed the script tags because I can't submit this entry.
    Thank you  in advance,
    Regards,
    Rulix Batistil
    Crystal Report Images Not Showing - JSP inside /WEB-INF folder

    Hi Saravana,
    After a few experimentation from your idea i was able to figure out the problem and now it is working.
    I don't have to copy the folder to where my jsp resides but still maintains it in the root location:  web/crystalreportviewers
    The changes should always be in web.xml.
    1st: change the crystal_image_uri value to ../crystalreportviewers
    2nd: change crystal_image_use_relative value to "web"
    Change to "web" instead of webapp because that is what I named my web root folder.
    <context-param>
              <param-name>crystal_image_uri</param-name>
              <param-value>../crystalreportviewers</param-value>
         </context-param>
         <context-param>
              <param-name>crystal_image_use_relative</param-name>
              <param-value>web</param-value>
         </context-param>
    Thank you. You showed me the way on how to solve the 3 day problem.
    BTW, my next problem is when clicking on any buttons prev/next/print/export, I got this error HTTP Status 404.
    Well, at least for now I can view my initial report.  I just need to figure out the next issue and with the help of the great people here in the forum.
    Thanks a lot.
    Regards,
    Rulix
    Edited by: Rulix Batistil on Nov 26, 2008 7:27 AM

  • Captcha image not working

    Here is the link to my contact form page:  http://www.healthquestpt.com/hpc/contact.html  The captcha image isnt working and the form doesnt work.  This image is in the directory "scripts/images"
    These are the options I've tried so far:
    <?php $random = rand(0,3); ?>
    <img src="images/img_<?php echo $random; ?>.jpg"/><br />
    <input type="hidden" name="captcha_code" value="<?php echo $random; ?>" />
    <?php $random = rand(0,3); ?>
    <img src="scripts/images/img_<?php echo $random; ?>.jpg"/><br />
    <input type="hidden" name="captcha_code" value="<?php echo $random; ?>" />
    <?php $random = rand(0,3); ?>
    <img src="/scripts/images/img_<?php echo $random; ?>.jpg"/><br />
    <input type="hidden" name="captcha_code" value="<?php echo $random; ?>" />
    I've tried moving the images from the "scripts/images" to the "images" file in the main directory.
    I've tried moving the contact.html into the "scripts" file
    I've tried moving the formmailer.php into the main directory.
    None of the above work so  right now I have the contact.html in the main directory, the formmailer.php & images associated with formmailer in the "scripts" file and another set of the images in the "images" file in the main directory.
    here is the link to the "scripts" folder:  http://www.healthquestpt.com/hpc/scripts/
    Please help.

    Ok den I did it but I only uploaded the index.html and the contact.html pages
    heres the formmail.php code:
    <?php
    // dB Masters' PHP FormM@iler, Copyright (c) 2007 dB Masters Multimedia
    // http://www.dbmasters.net/
    // FormMailer comes with ABSOLUTELY NO WARRANTY
    // Licensed under the AGPL
    // See license.txt and readme.txt for details
    // General Variables
    $check_referrer="no";
    $referring_domains="http://domain.com/,http://www.domain.com/,http://subdomain.domain.com/";
    // options to use if hidden field "config" has a value of 0
    // recipient info
    $charset[0]="UTF-8";
    $tomail[0]="[email protected]";
    $cc_tomail[0]="";
    $bcc_tomail[0]="";
    // Mail contents config
    $subject[0]="Home Physician Care Inquiry";
    $reply_to_field[0]="Email";
    $reply_to_name[0]="Name";
    $required_fields[0]="Name,Phone,Email,Comments";
    $required_email_fields[0]="Email";
    $attachment_fields[0]="";
    $return_ip[0]="yes";
    $mail_intro[0]="The following inquiry has been made:";
    $mail_fields[0]="Name,Address,City,State,Zip,Phone,Email,Comments";
    $mail_type[0]="text";
    $mail_priority[0]="1";
    $allow_html[0]="no";
    // Send back to sender config
    $send_copy[0]="no";
    $copy_format[0]="vert_table";
    $copy_fields[0]="Name,Comments";
    $copy_attachment_fields[0]="";
    $copy_subject[0]="Subject of Copy Email";
    $copy_intro[0]="Thanks for your inquiry, the following message has been delivered.";
    $copy_from[0]="[email protected]";
    $copy_tomail_field[0]="Email";
    // Result options
    $header[0]="";
    $footer[0]="";
    $error_page[0]="";
    $thanks_page[0]="thanks.html";
    // Default Error and Success Page Variables
    $error_page_title[0]="Errors:";
    $error_page_text[0]="Please use your browser's back button to return to the form and complete the required fields.";
    $thanks_page_title[0]="Message Sent";
    $thanks_page_text[0]="Thank you for your inquiry";
    // Antispam Options
    $empty_field[0]="nospam";
    $character_scan[0]="Comments,Name";
    $time_delay[0]="2";
    $captcha_codes[0]="9C2449,EEADC8,77A585,D72838";
    $max_urls[0]="2";
    $max_url_fields[0]="Comments";
    $flag_spam[0]="";
    // options to use if hidden field "config" has a value of 1
    // recipient info
    $charset[1]="";
    $tomail[1]="";
    $cc_tomail[1]="";
    $bcc_tomail[1]="";
    // Mail contents config
    $subject[1]="";
    $reply_to_field[1]="";
    $reply_to_name[1]="";
    $required_fields[1]="";
    $required_email_fields[1]="";
    $attachment_fields[1]="";
    $return_ip[1]="";
    $mail_intro[1]="";
    $mail_fields[1]="";
    $mail_type[1]="";
    $mail_priority[1]="";
    $allow_html[1]="";
    // Send back to sender config
    $send_copy[1]="";
    $copy_format[1]="";
    $copy_fields[1]="";
    $copy_attachment_fields[1]="";
    $copy_subject[1]="";
    $copy_intro[1]="";
    $copy_from[1]="";
    $copy_tomail_field[1]="";
    // Result options
    $header[1]="";
    $footer[1]="";
    $error_page[1]="";
    $thanks_page[1]="";
    // Default Error and Success Page Variables
    $error_page_title[1]="";
    $error_page_text[1]="";
    $thanks_page_title[1]="";
    $thanks_page_text[1]="";
    // Antispam Options
    $empty_field[1]="";
    $character_scan[1]="";
    $time_delay[1]="";
    $captcha_codes[1]="";
    $max_urls[1]="";
    $max_url_fields[1]="";
    $flag_spam[1]="";
    // Don't muck around past this line unless you know what you are doing //
    ob_start();
    $config=$_POST["config"];
    $debug=0;
    $debug_text="";
    // fix for Windows email server security
    ini_set("sendmail_from",$tomail[$config]);
    // email validation regular expression
    $regex = "^[-a-z0-9!#$%&\'*+/=?^_`{|}~]+(\.[-a-z0-9!#$%&\'*+/=?^_`{|}~]+)*@(([a-z0-9]([-a-z0-9]*[a -z0-9]+)?){1,63}\.)+([a-z]([-a-z0-9]*[a-z0-9]+)?){2,63}$";
    $header_injection_regex = "(\r|\n)";
    if($header[$config]!="")
    include($header[$config]);
    if($_POST["submit"] || $_POST["Submit"] || $_POST["submit_x"] || $_POST["Submit_x"])
    // begin global functions //
    // get visitor IP
    function getIP()
      if(getenv(HTTP_X_FORWARDED_FOR))
       $user_ip=getenv("HTTP_X_FORWARDED_FOR");
      else
       $user_ip=getenv("REMOTE_ADDR");
      return $user_ip;
    // get value of given key
    function parseArray($key)
      $array_value=$_POST[$key];
      $count=1;
      extract($array_value);
      foreach($array_value as $part_value)
       if($count > 1){$value.=", ";}
       $value.=$part_value;
       $count=$count+1;
      return $value;
    // stripslashes and autolink url's
    function parseValue($value)
      $value=preg_replace("/(http:\/\/+.[^\s]+)/i",'<a href="\\1">\\1</a>', $value);
      return $value;
    // html header if used
    function htmlHeader()
      $htmlHeader="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$charset[$config]."\"></head>\n<body>\n<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"600\">\n";
      return $htmlHeader;
    // html footer if used
    function htmlFooter()
      $htmlFooter="</table>\n</body>\n</html>\n";
      return $htmlFooter;
    // build verticle table format
    function buildVertTable($fields, $intro, $to, $send_ip)
      $message=htmlHeader();
      if($intro != "")
       $message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"2\">".$intro."</td>\n</tr>\n";
      $fields_check=preg_split('/,/',$fields);
      $run=sizeof($fields_check);
      for($i=0;$i<$run;$i++)
       $cur_key=$fields_check[$i];
       $cur_value=$_POST[$cur_key];
       if(is_array($cur_value))
        $cur_value=parseArray($cur_key);
       $cur_value=parseValue($cur_value);
       if($allow_html[$config]=="no")
        $cur_value=htmlspecialchars(nl2br($cur_value));
       else
        $cur_value=nl2br($cur_value);
       $message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$cur_value."</td>\n</tr>\n";
      if($send_ip=="yes" && $to=="recipient")
       $user_ip=getIP();
       $message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$user_ip."</td>\n</tr>\n";
      $message.=htmlFooter();
      return $message;
    // build horizontal table format
    function buildHorzTable($fields, $intro, $to, $send_ip)
      $message=htmlHeader();
      $fields_check=preg_split('/,/',$fields);
      $run=sizeof($fields_check);
      if($intro != "")
       $message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"".$run."\">".$intro."</td>\n</tr>\n";
      $message.="<tr>\n";
      for($i=0;$i<$run;$i++)
       $cur_key=$fields_check[$i];
       $message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n";
      if($send_ip=="yes" && $to=="recipient")
       $message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n";
      $message.="</tr>\n";
      $message.="<tr>\n";
      for($i=0;$i<$run;$i++)
       $cur_key=$fields_check[$i];
       $cur_value=$_POST[$cur_key];
       if(is_array($cur_value))
        $cur_value=parseArray($cur_key);
       $cur_value=parseValue($cur_value);
       if($allow_html[$config]=="no")
        $cur_value=htmlspecialchars(nl2br($cur_value));
       else
        $cur_value=nl2br($cur_value);
       $message.="<td align=\"left\" valign=\"top\">".$cur_value."</td>\n";
      $message.="</tr>\n";
      $message.="<tr>\n";
      if($send_ip=="yes" && $to=="recipient")
       $user_ip=getIP();
       $message.="<td align=\"left\" valign=\"top\">".$user_ip."</td>\n";
      $message.="</tr>\n";
      $message.=htmlFooter();
      return $message;
    // build plain text format
    function buildTextTable($fields, $intro, $to, $send_ip)
      $message="";
      if($intro != "")
       $message.=$intro."\n\n";
      $fields_check=preg_split('/,/',$fields);
      $run=sizeof($fields_check);
      for($i=0;$i<$run;$i++)
       $cur_key=$fields_check[$i];
       $cur_value=$_POST[$cur_key];
       if(is_array($cur_value))
        $cur_value=parseArray($cur_key);
       $cur_value=parseValue($cur_value);
       if($allow_html[$config]=="no")
        $cur_value=htmlspecialchars($cur_value);
       else
        $cur_value=$cur_value;
       $message.="".$cur_key.": ".$cur_value."\n";
      if($send_ip=="yes" && $to=="recipient")
       $user_ip=getIP();
       $message.="Sender IP: ".$user_ip."\n";
      return $message;
    // get the proper build fonction
    function buildTable($format, $fields, $intro, $to, $send_ip)
      if($format=="vert_table")
       $message=buildVertTable($fields, $intro, $to, $send_ip);
      else if($format=="horz_table")
       $message=buildHorzTable($fields, $intro, $to, $send_ip);
      else
       $message=buildTextTable($fields, $intro, $to, $send_ip);
      return $message;
    // referrer checking security option
    function checkReferer()
      if($check_referrer=="yes")
       $ref_check=preg_split('/,/',$referring_domains);
       $ref_run=sizeof($ref_check);
       $referer=$_SERVER['HTTP_REFERER'];
       $domain_chk="no";
       for($i=0;$i<$ref_run;$i++)
        $cur_domain=$ref_check[$i];
        if(stristr($referer,$cur_domain)){$domain_chk="yes";}
      else
       $domain_chk="yes";
      return $domain_chk;
    // checking required fields and email fields
    function checkFields($text_fields, $email_fields, $regex)
           $error_message="";
      if($debug==1)
       $error_message.="<li>text_fields: ".$text_fields."<br />email_fields: ".$email_fields."<br />reply_to_field: ".$reply_to_field."<br />reply_to_name: ".reply_to_name."</li>";
      if($text_fields != "")
       $req_check=preg_split('/,/',$text_fields);
       $req_run=sizeof($req_check);
       for($i=0;$i<$req_run;$i++)
        $cur_field_name=$req_check[$i];
        $cur_field=$_POST[$cur_field_name];
        if($cur_field=="")
         $error_message.="<li>You are missing the <b>".$req_check[$i]."</b> field</li>\n";
      if($email_fields != "")
       $email_check=preg_split('/,/',$email_fields);
       $email_run=sizeof($email_check);
       for($i=0;$i<$email_run;$i++)
        $cur_email_name=$email_check[$i];
        $cur_email=$_POST[$cur_email_name];
        if($cur_email=="" || !eregi($regex, $cur_email))
         $error_message.="<li>You are missing the <b>".$email_check[$i]."</b> field or it is not a valid email address.</li>\n";
      return $error_message;
    // attachment function
    function getAttachments($attachment_fields, $message, $content_type, $border)
      $att_message="This is a multi-part message in MIME format.\r\n";
      $att_message.="--{$border}\r\n";
      $att_message.=$content_type."\r\n";
      $att_message.="Content-Transfer-Encoding: 7bit\r\n\r\n";
      $att_message.=$message."\r\n\r\n";
      $att_check=preg_split('/,/',$attachment_fields);
      $att_run=sizeof($att_check);
      for($i=0;$i<$att_run;$i++)
       $fileatt=$_FILES[$att_check[$i]]['tmp_name'];
       $fileatt_name=$_FILES[$att_check[$i]]['name'];
       $fileatt_type=$_FILES[$att_check[$i]]['type'];
       if (is_uploaded_file($fileatt))
        $file=fopen($fileatt,'rb');
        $data=fread($file,filesize($fileatt));
        fclose($file);
        $data=chunk_split(base64_encode($data));
        $att_message.="--{$border}\n";
        $att_message.="Content-Type: {$fileatt_type}; name=\"{$fileatt_name}\"\r\n";
        $att_message.="Content-Disposition: attachment; filename=\"{$fileatt_name}\"\r\n";
        $att_message.="Content-Transfer-Encoding: base64\r\n\r\n".$data."\r\n\r\n";
      $att_message.="--{$border}--\n";
      return $att_message;
    // function to set content type
    function contentType($charset, $format)
      if($format=="vert_table")
       $content_type="Content-type: text/html; charset=".$charset."\r\n";
      else if($format=="horz_table")
       $content_type="Content-type: text/html; charset=".$charset."\r\n";
      else
       $content_type="Content-type: text/plain; charset=".$charset."\r\n";
      return $content_type;
    // end global functions //
    // begin procedural scripting //
    // anti-spam empty field check
    if($_POST[$empty_field[$config]] != "")
      $empty_message = "<li>This submission failed and was flagged as spam.</li>\n";
    // anti-spam character scan check
    if(strlen($character_scan[$config]) > 0)
      $spam_message="";
      $field_check=preg_split('/,/',$character_scan[$config]);
      $field_run=sizeof($field_check);
      for($i=0;$i<$field_run;$i++)
       $cur_field_name=$field_check[$i];
       $cur_field=$_POST[$cur_field_name];
       if(preg_match("/<(.|\n)+?>/", $cur_field) || preg_match("/\[(.|\n)+?\]/", $cur_field))
        $spam_message.="<li>This message contains disallowed characters.</li>\n";
    // anti-spam time delay check
    if((strlen($time_delay[$config]) > 0 && strlen($_POST["time"]) > 0) || (strlen($time_delay[$config]) > 0 && (strlen($_POST["time"]) == 0 || !$_POST["time"])))
      if((time() - $_POST["time"]) < $time_delay[$config])
       $time_message = "<li>This has been stopped by the timer, and is likely spam.</li>\n";
    // anti-spam CAPTCHA check
    if(strlen($captcha_codes[$config]) > 0)
      $captcha_check=preg_split('/,/',$captcha_codes[$config]);
      if(strtolower($_POST["captcha_entry"]) != strtolower($captcha_check[$_POST["captcha_code"]]))
       $captcha_message = "<li>CAPTCHA test did not match.</li>\n";
    // anti-spam max URL check
    if(strlen($max_url_fields[$config]) > 0)
      $max_url_message="";
      $field_check=preg_split('/,/',$max_url_fields[$config]);
      $field_run=sizeof($field_check);
      for($i=0;$i<$field_run;$i++)
       $cur_field_name=$field_check[$i];
       $cur_field=$_POST[$cur_field_name];
       preg_match_all("/http:/", $cur_field, $matches);
       if(count($matches[0]) > $max_urls[$config])
        $max_url_message.="<li>This message contains too many URL's.</li>\n";
    // set anti-spam flagging option
    if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) == 0)
      $set_flag = 2;
    else if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) > 0)
      $set_flag = 1;
    else
      $set_flag = 0;
    // header injection check
        $security_filter="";
    if(strlen($_POST[$reply_to_field[$config]]) > 0)
      if(eregi($header_injection_regex,$_POST[$reply_to_field[$config]]))
       $security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
      else
       $reply_to_field_checked=$_POST[$reply_to_field[$config]];
    if(strlen($_POST[$reply_to_name[$config]]) > 0)
      if(eregi($header_injection_regex,$_POST[$reply_to_name[$config]]))
       $security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
      else
       $reply_to_name_checked=$_POST[$reply_to_name[$config]];
    // check domain referrer and continue
    $domain_chk=checkReferer();
    if($domain_chk=="yes")
      $error_message=checkFields($required_fields[$config], $required_email_fields[$config], $regex);
      if(strlen($error_message) < 1 && strlen($security_filter) < 1 && $set_flag < 2)
       // build appropriate message format for recipient
       $content_type=contentType($charset[$config], $mail_type[$config]);
       $message=buildTable($mail_type[$config], $mail_fields[$config], $mail_intro[$config], "recipient", $return_ip[$config]);
       // build header data for recipient message
       //$extra="From: ".$_POST[$reply_to_field[$config]]."\r\n";
       $extra="From: ".$reply_to_name_checked." <".$reply_to_field_checked.">\r\n";
       if($cc_tomail[$config]!="")
        $extra.="Cc: ".$cc_tomail[$config]."\r\n";
       if($bcc_tomail[$config]!="")
        $extra.="Bcc: ".$bcc_tomail[$config]."\r\n";
       if($mail_priority[$config]!="")
        $extra.="X-Priority: ".$mail_priority[$config]."\r\n";
       // get attachments if necessary
       if($attachment_fields[$config]!="")
        $semi_rand=md5(time());
        $border="==Multipart_Boundary_x{$semi_rand}x";
        $extra.="MIME-Version: 1.0\r\n";
        $extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
        $message=getAttachments($attachment_fields[$config], $message, $content_type, $border);
       else
        $extra.="MIME-Version: 1.0\r\n".$content_type;
       // send recipient email
       if($debug==1)
        if($set_flag == 1)
         $debug_text.="<p><b>Mail would have sent flagged for spam if not in debug mode.</b></p>";
        else
         $debug_text.="<p><b>Mail would have sent if not in debug mode.</b></p>";
       else if($debug==0)
        if($set_flag == 1)
         $subject = $flag_spam[$config]." ".$subject[$config];
        else
         $subject = $subject[$config];
        mail("".$tomail[$config]."", "".stripslashes($subject)."", "".stripslashes($message)."", "".$extra."");
       // autoresponse email if necessary
       if($send_copy[$config]=="yes")
        // build appropriate message format for autoresponse
        $content_type=contentType($charset[$config], $copy_format[$config]);
        $message=buildTable($copy_format[$config], $copy_fields[$config], $copy_intro[$config], "autoresponder", $return_ip[$config]);
        // build header data for autoresponse
        $copy_tomail=$_POST[$copy_tomail_field[$config]];
        $copy_extra="From: ".$copy_from[$config]."\r\n";
        // get autoresponse  attachments if necessary
        if($copy_attachment_fields[$config]!="")
         $semi_rand=md5(time());
         $border="==Multipart_Boundary_x{$semi_rand}x";
         $copy_extra.="MIME-Version: 1.0\r\n";
         $copy_extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
         $message=getAttachments($copy_attachment_fields[$config], $message, $content_type, $border);
        else
         $copy_extra.="MIME-Version: 1.0\r\n".$content_type;
        // send autoresponse email
        if($debug==1)
         if($set_flag == 1)
          $debug_text.="<p><b>Autoresponder would have sent flagged for spam if not in debug mode.</b></p>";
         else
          $debug_text.="<p><b>Autoresponder would have sent if not in debug mode.</b></p>";
        else if($debug==0)
         $send_copy = 1;
         if($copy_tomail=="" || !eregi($regex,$copy_tomail))
          $send_copy = 0;
         if($send_copy == 1)
          if($set_flag == 1)
           $copy_subject = $flag_spam[$config]." ".$copy_subject[$config];
          else
           $copy_subject = $copy_subject[$config];
          mail("$copy_tomail", "".$copy_subject."", "$message", "$copy_extra");
       // showing thanks pages from a successful submission
       if($thanks_page[$config]=="")
        echo "<h3>".$thanks_page_title[$config]."</h3>\n";
        echo "<p>".$thanks_page_text[$config]."</p>\n";
        if(strlen($debug_text) > 0)
         echo "<p><b><i>".$debug_text."</i></b></p>\n";
       else
        header("Location: ".$thanks_page[$config]);
      else
       // entering error page options from missing required fields
       if($error_page[$config]=="")
        echo "<h3>".$error_page_title[$config]."</h3>\n";
        echo "<ul>\n";
        echo $security_filter.$empty_message.$error_message.$spam_message.$time_message.$captcha_messa ge.$max_url_message;
        echo "</ul>\n";
        echo "<p>".$error_page_text[$config]."</p>\n";
       else
        header("Location: ".$error_page[$config]);
    else
      echo "<h3>".$error_page_title[$config]."</h3>\n";
      // message if unauthorized domain trigger from referer checking option
      echo "<p>Sorry, mailing request came from an unauthorized domain.</p>\n";
    // end procedural scripting //
    else
    echo "<h3>Error</h3>";
    echo "<p>No form data has been sent to the script</p>\n";
    if($footer[$config]!="")
    include($footer[$config]);
    ob_end_flush();
    ?>

  • Image not showing in Abobe integrated with Java WebDynPro

    Hi All,
    Image is not showing in Abobe integrated with Java WebDynPro.
    I did the following:
    Added the image field in adobe form. in URL value set the value of context node binding. Binding set to none and size set to Use Original Size.
    Then in script editor i wrote
    this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    at innitialize , javascript and client.
    I can see the image from the same url context value if image field is created directly in WebDynPro View.
    Can anyone suggest what is missing?
    Thanks and Regards,
    Nuzhat

    Try changing your line of code for this one
    this.value.image.href = xfa.record.Images.URL;
    Check that the url passed by scripting is correct with a messageBox for example.
    You can also try assigning a hardcoded url at scripting level to check if its works.
    Best regards, Aldo.

  • Small images not showing in design view

    Desperate for help! I've been trying to diagnose this for a
    long time. For some strange reason, images that used to show up in
    my design view are now displaying the 'missing image' icon. I've
    narrowed it down to this--if the image is less than 8px high, the
    image will not display. When I increase it to 8px or more high
    (width does not have any bearing on it), the image is displayed.
    Same exact image name, same placement, path, file type, etc. The
    only variable changed is the image height. Someone please tell me
    what is going on. By the way, this just started to happen. These
    small images were displaying fine up until yesterday.

    You have two id="header" elements on the page....
    I can see both the 5px tall GIF and JPG images just fine in
    CS4.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "peregrinedesign" <[email protected]> wrote
    in message
    news:gmiaur$bv$[email protected]..
    > OK, but I'm not sure this will help. Here's the page:
    >
    http://www.capitaloandp.com/orthotics.php
    >
    > What you will see is correct, and when I preview with a
    browser it is fine
    > also, it's only the DW design view that is not showing
    the small jpeg.
    > On the right side, there are two small black rectangles.
    The one on the
    > left
    > is a gif, and the one on the right is the jpg. They were
    both exported
    > from the
    > same original Fireworks file. I have tested using
    Photoshop also.
    >
    > Thank you for your attention to this.
    >

  • Some images not showing on ipad when book is previewed

    When I preview the book in progress, some images only appear in the thumbnails, not on the full page view. These same images were showing up a few versions ago.  Other images are showing up just fine.

    Hi KT and Anyone Else Who Could Help,
    One thing I noticed is the images that are not showing up are all captioned, but with background shut off. I have a few image galleries as well, but those ARE showing up.
    Some images are jpegs, others are pngs, but there is no pattern or correlation between image type and showing up, not showing up.
    Besides, they all showed up previously.
    So I removed the caption from one image and now it is showing up!
    But I am nearly certain that in an earlier version WITH captions, they all showed, and I would like to keep the captions.
    Any ideas?
    Thanks so much!
    Belinda

  • Alias icons in disk images - not showing correctly

    Hi,
    I already posted about this problem on Macworld Forums, so far no answers. Maybe here I'll get some.
    The problem is:
    whenever I download an app from the Internet, it mostly comes as a disk image. And it's OK if the DMG file contains only app and "read me" file. But more often it contains the alias to /Applications folder.
    That's the problem:
    the icon for that alias does not show properly, it always generates some icon with another icon above it. Issuing "Get Info" (Cmd-I) command, and tabbing to the icon, then deleting that annoying icon, restoring to the default one, does not work.
    Any ideas what should I do?
    Thank you.
    iMac SE Graphite   Mac OS X (10.3.9)  

    Hi Sanjin
    So it is more than only disk images but a system wide problem, in that case, a general approach is needed.
    I suggest you run Repair Disk on your start up drive, from your install DVD.
    The startup drive can only be repaired from another drive. Simply loading the install disk is not sufficient. You have to boot from the install disk.
    To do this: Insert the Install Disk 1 into the drive and then select Restart, then continue to hold down the C key until the Apple logo appears.
    This will take you to the installation software, but you do not want to install.
    Select your language, then go up to the top menu bar to Utilities and navigate to the Disk Utilities application.
    Select the start up drive, then follow the instructions in the First Aid pane where you can click on Repair Disk.
    If it finds errors, repeat the process until it reports no errors.
    After these repairs, quit the application, and restart normally.
    Once restarted normally run Repair Permissions. from the Disk Utility application found on your hard drive in Application/Utilities.
    regards roam

  • Images not showing up in preview

    I have a web site that I'm working on that has a simple
    problem (I'm sure) but it is frustrating. The web site is in it's
    own folder on the server named public_html. The thing is, the pages
    look fine when I view them in Dreamweaver and when I upload them to
    the server but when I try to preview view them locally some of the
    images don't show up. Some of the image sources have a forward
    slash (/) at the begining. These are the images that don't show up.
    Please help! This is driving me nuts!
    Thanks again.

    Post a link to a page that is not showing the desired images,
    please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "mattyman0" <[email protected]> wrote in
    message
    news:eia2mp$8ge$[email protected]..
    >I have a web site that I'm working on that has a simple
    problem (I'm sure)
    >but
    > it is frustrating. The web site is in it's own folder on
    the server named
    > public_html. The thing is, the pages look fine when I
    view them in
    > Dreamweaver
    > and when I upload them to the server but when I try to
    preview view them
    > locally some of the images don't show up. Some of the
    image sources have a
    > forward slash (/) at the begining. These are the images
    that don't show
    > up.
    >
    > Please help! This is driving me nuts!
    >
    > Thanks again.
    >

  • Images not showing up in project

    I have been having problems with image not appearing in projects but they do appear in folders, sometimes. Sometimes they are just no longer visible anywhere in Aperture though they are still in Apertures folder structure. That is, if I view packets content they are still there.
    I am sure this is a user error being that just a few months ago switched over from a PC and THEN just jumped into this non-folder-type storing structure with iPhoto and Aperture. To be honest though, iPhoto seems to make more sense to me than Aperture.
    So anyway, the question. How to I get these apparently hidden image to reappear in Aperture?

    Wow, well let me try again.
    I imported images into a project. I have created albums under that project. All worked as it should. I could see images under both the project and the album views.
    Now I view that project, I see no images. I click on an album under the project and I see images. As stated earlier, I do not believe the images have been deleted from the project since they still live in the project folder as viewed in a finder window and in the album under the project.
    Basically, what shows in finder does not match what shows in Aperture.
    @rwboyer. Let me just say that if you have a problem with how someone posts a question, and by the way why would I post a question if I knew what the heck was going on?, I would suggest two ways of dealing with it: 1) ask kindly to have the question rewritten or 2) don't bother to reply. Especially in such a rude manor.

  • Thumbnail images not showing up in my Spry slideshow

    Hello - Everything seems to be working in my Spry slideshow. However, my thumbnail images are not showing up in Live view or browser. The images are all in the correct folder. Here is what the script looks like:
    <ul id="ImageSlideShow" title="Our Products">
            <li><a href="images/ss_penny.jpg" title="All Things Pennies"><img src="images/ss_penny_thumb.jpg" alt="" /></a></li>
            <li><a href="images/ss_rides.jpg" title="Children's Kiosks"><img src="images/ss_rides_thumb.jpg" alt="" /></a></li>
            <li><a href="images/ss_ireality.jpg" title="Simulators"><img src="images/ss_ireality_thumb.jpg" alt="" /></a></li>
            <li><a href="images/ss_carousels.jpg" title="Carousels"><img src="images/ss_carousels_thumb.jpg" alt="" /></a></li>
            <li><a href="images/ss_candy.jpg" title="Candy Kiosks"><img src="images/ss_candy_thumb.jpg" alt="" /></a></li>
         </ul>
          <script type="text/javascript">
    Is there something I'm missing?
    Thank you

    There is nothing wrong with the markup that you have shown, hence the problem will be located somwhere else.
    Gramps

Maybe you are looking for

  • Swf not working in dreamweaver help

    ok i have a file that i downloaded with a flash photo gallery in it. now everything works fine on my cpu i click the swf file it opens and works fine. ok i uploaded that whole folder for the flash gallery to my server and when i click view on the htm

  • [request] SportWatcher - tool to use Garmin GPS-watches under Linux

    Hi, i'd love to use my Garmin GPS-Watch under Arch, but tbh I'm to new to arch and don't have the time (at the moment) to have a look on how to create packages and stuff. I'd be really pleased if someone could create a package for me (guess that ther

  • Recursion ??

    hi can a recursive procedure be achieved ??? like from below create or replace procedure i_recursion (i_number number) is i_number2 number ; begin i_number2:=i_number+i_recursion(i_number+1); if i_number = 1000 then return ; end if; end; but i'm gett

  • Settings for symantec endpoint protection

    Given the tumultuous relationship between Hyperion and Symantec Endpoint Protection, what are the settings in the exceptions that will guarantee minimal intrusion so that the performance of applications don't hurt ?We had to remove the software for 1

  • HT204291 How does one get full screen when using air play on my tv from my iPad,thanks in advance

    How does one get a full screen when using air play on my tv when I'm mirroring,.? Thanks in advance