How to display FDF in browser

Hi! I have a big problem! I have a HTML form. Data from the HTML form go to FDF file. What can I do to the user's browser displays the filled PDF file? Here's my code (downloaded from: http://koivi.com/fill-pdf-form-fields/):
INDEX.PHP:
<?php
    include dirname(__FILE__).'/pdf_process.php';
    echo '<?xml version="1.0" encoding="iso-8859-2"?>',"\n";    // because short_open_tags = On causes a parse error.
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Using HTML forms to fill in PDF fields with PHP and FDF</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  <meta name="description" content="A PHP solution to filling a PDF file's form fields with data from a submitted HTML form." />
</head>
<body>
<?php
    if(isset($CREATED)){
?>
   <div id="pageResults">
    <h1>Your Result</h1>
    <p>You can now <a href="<?php echo str_replace(dirname(__FILE__).'/','',$fdf_file) ?>">download</a> the file you just created. When downloaded, open the FDF file with your Adobe Acrobat or Acrobat Reader program to view the original PDF document with the fields filled in with the information you posted through the form below.</p>
   </div>
<?php
?>
   <div>
    <h1>HTML form</h1>
    <form method="post" action="<?php echo $_SERVER['REQUEST_URI'] ?>">
     <table cellpadding="3" cellspacing="0" border="0">
      <tr><td>Name</td><td><input type="text" name="__NAME__" value="<?php if(isset($_POST['__NAME__'])) echo $_POST['__NAME__']; ?>" /></td></tr>
      <tr><td>Title</td><td><input type="text" name="__TITLE__" value="<?php if(isset($_POST['__TITLE__'])) echo $_POST['__TITLE__']; ?>" /></td></tr>
      <tr><td>Email</td><td><input type="text" name="__EMAIL__" value="<?php if(isset($_POST['__EMAIL__'])) echo $_POST['__EMAIL__']; ?>" /></td></tr>
      <tr><td>Address</td><td><input type="text" name="__ADDRESS__" value="<?php if(isset($_POST['__ADDRESS__'])) echo $_POST['__ADDRESS__']; ?>" /></td></tr>
      <tr><td>City</td><td><input type="text" name="__CITY__" value="<?php if(isset($_POST['__CITY__'])) echo $_POST['__CITY__']; ?>" /></td></tr>
      <tr><td>State</td><td><input type="text" name="__STATE__" value="<?php if(isset($_POST['__STATE__'])) echo $_POST['__STATE__']; ?>" /></td></tr>
      <tr><td>Zip</td><td><input type="text" name="__ZIP__" value="<?php if(isset($_POST['__ZIP__'])) echo $_POST['__ZIP__']; ?>" /></td></tr>
      <tr><td>Phone</td><td><input type="text" name="__PHONE__" value="<?php if(isset($_POST['__PHONE__'])) echo $_POST['__PHONE__']; ?>" /></td></tr>
      <tr><td>Fax</td><td><input type="text" name="__FAX__" value="<?php if(isset($_POST['__FAX__'])) echo $_POST['__FAX__']; ?>" /></td></tr>
     </table>
     <input type="submit" />
    </form>
   </div>
</body>
</html>
createFDF.php:
<?php
*   createFDF
*   Takes values submitted via an HTML form and fills in the corresponding
*   fields into an FDF file for use with a PDF file with form fields.
*   @param  $file   The pdf file that this form is meant for. Can be either
*                   a url or a file path.
*   @param  $info   The submitted values in key/value pairs. (eg. $_POST)
*   @result Returns the FDF file contents for further processing.
function createFDF($file,$info){
    $data="%FDF-1.2\n%âãÏÓ\n1 0 obj\n<< \n/FDF << /Fields [ ";
    foreach($info as $field => $val){
         if(is_array($val)){
             $data.='<</T('.$field.')/V[';
             foreach($val as $opt)
                  $data.='('.trim($opt).')';
             $data.=']>>';
         }else{
             $data.='<</T('.$field.')/V('.trim($val).')>>';
    $data.="] \n/F (".$file.") /ID [ <".md5(time()).">\n] >>".
        " \n>> \nendobj\ntrailer\n".
        "<<\n/Root 1 0 R \n\n>>\n%%EOF\n";
    return $data;
?>
pdf_process.php:
<?php
    require_once 'createFDF.php';
    $pdf_file='http://localhost/generator/test.pdf';
    // allow for up to 25 different files to be created, based on the minute
    $min=date('i') % 25;
    $fdf_file=dirname(__FILE__).'/results/posted-'.$min.'.fdf';
    if(isset($_POST['__NAME__'])){
        $_POST['__CSZ__']=$_POST['__CITY__'].', '.
                          $_POST['__STATE__'].' '.
                          $_POST['__ZIP__'];
        // get the FDF file contents
        $fdf=createFDF($pdf_file,$_POST);
        // Create a file for later use
        if($fp=fopen($fdf_file,'w')){
            fwrite($fp,$fdf,strlen($fdf));
            $CREATED=TRUE;
        }else{
            echo 'Unable to create file: '.$fdf_file.'<br><br>';
            $CREATED=FALSE;
        fclose($fp);
?>
submit_form.php:
<?php
    // check that a form was submitted
    if(isset($_POST) && is_array($_POST) && count($_POST)){
        // we will use this array to pass to the createFDF function
        $data=array();
        // This displays all the data that was submitted. You can
        // remove this without effecting how the FDF data is generated.
        echo'<pre>POST '; print_r($_POST);echo '</pre>';
        if(isset($_POST['Text2'])){
            // the name field was submitted
            $pat='`[^a-z0-9\s]+$`i';
            if(empty($_POST['Text2']) || preg_match($pat,$_POST['Text2'])){
                // no value was submitted or something other than a
                // number, letter or space was included
                die('Invalid input for Text2 field.');
            }else{
                // if this passed our tests, this is safe
                $data['Text2']=$_POST['Text2'];
            if(!isset($_POST['Text3'])){
                // Why this? What if someone is spoofing form submissions
                // to see how your script works? Only allow the script to
                // continue with expected data, don't be lazy and insecure ;)
                die('You did not submit the correct form.');
            // Check your data for ALL FIELDS that you expect, ignore ones you
            // don't care about. This is just an example to illustrate, so I
            // won't check anymore, but I will add them blindly (you don't want
            // to do this in a production environment).
            $data['Text3']=$_POST['Text3'];
            $data['Text4']=$_POST['Text4'];
            $data['Text5']=$_POST['Text5'];
            // I wanted to add the date to the submissions
            $data['Text1']=date('Y-m-d H:i:s');
            // if we got here, the data should be valid,
            // time to create our FDF file contents
            // need the function definition
            require_once 'createFDF.php';
            // some variables to use
            // file name will be <the current timestamp>.fdf
            $fdf_file=time().'.fdf';
            // the directory to write the result in
            $fdf_dir=dirname(__FILE__).'/results';
            // need to know what file the data will go into
            $pdf_doc='localhost/generator/Project2.pdf';
            // generate the file content
            $fdf_data=createFDF($pdf_doc,$data);
            // this is where you'd do any custom handling of the data
            // if you wanted to put it in a database, email the
            // FDF data, push ti back to the user with a header() call, etc.
            // write the file out
            if($fp=fopen($fdf_dir.'/'.$fdf_file,'w')){
                fwrite($fp,$fdf_data,strlen($fdf_data));
                echo $fdf_file,' written successfully.';
            }else{
                die('Unable to create file: '.$fdf_dir.'/'.$fdf_file);
            fclose($fp);
    }else{
        echo 'You did not submit a form.';
?>
Thank You in advance! This is VERY important for me... Matthew

I would like to ask you one more thing - how to encode utf-8? I would like to have Polish characters in pdf. I don't know where change encoding - this is not so easy... I found a script (http://koivi.com/fill-pdf-form-fields/):
createXFDF:
<?php
KOIVI HTML Form to FDF Parser for PHP (C) 2004 Justin Koivisto
Version 1.1
Last Modified: 2010-02-17
    This library is free software; you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation; either version 2.1 of the License, or (at
    your option) any later version.
    This library is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
    License for more details.
    You should have received a copy of the GNU Lesser General Public License
    along with this library; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    Full license agreement notice can be found in the LICENSE file contained
    within this distribution package.
    Justin Koivisto
    [email protected]
    http://koivi.com
* createXFDF
* Tales values passed via associative array and generates XFDF file format
* with that data for the pdf address sullpiled.
* @param string $file The pdf file - url or file path accepted
* @param array $info data to use in key/value pairs no more than 2 dimensions
* @param string $enc default UTF-8, match server output: default_charset in php.ini
* @return string The XFDF data for acrobat reader to use in the pdf form file
function createXFDF($file,$info,$enc='UTF-8'){
    $data='<?xml version="1.0" encoding="'.$enc.'"?>'."\n".
         '<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">'."\n".
          '<fields>'."\n";
    foreach($info as $field => $val){
         $data.='<field name="'.$field.'">'."\n";
        if(is_array($val)){
            foreach($val as $opt)
                $data.='<value>'.htmlentities($opt).'</value>'."\n";
        }else{
            $data.='<value>'.htmlentities($val).'</value>'."\n";
        $data.='</field>'."\n";
    $data.='</fields>'."\n".
         '<ids original="'.md5($file).'" modified="'.time().'" />'."\n".
         '<f href="'.$file.'" />'."\n".
         '</xfdf>'."\n";
    return $data;
?>
but this doesn't work! When opening the error occurs: "XML parsing error: undefined entity (error code 11), line 5, column 8  of file  /C/Users/Matthew/AppDataLocal/MOzilla/Firefox/Profiles/kymhbeiz.default/Cache/2FEB01d01" -  what is this? Ehh, I have no strength....
Thank You in advance!!! Matthew

Similar Messages

  • How to display Titles in Browser using Flex 3

    Hi ,
    How is it possible to have a Title Name on the Browser window ??
    Any ideas ??
    Thanks in advnace .

    Hi Kiran,
    If you want to set the title only once in the application and if it remains same for rest of your app...you can simpley put pageTitle="Some Title" in your
    main Application Root tag..
    <mx:Application pageTitle="Some Title" />
    But if you want to change the title of your application frequently as you navigate through various screens in your app..then you can put a public function which chnages the title as I posted in my previous code and call that function from various screens by calling that public function using Application.application.setBrowserTitle(passmesage);
    Thanks,
    Bhasker Chari

  • How to display keywords in browser view

    I watched the tutorial for keywords at
    http://www.apple.com/aperture/tutorials/#organizecompare-keywords
    and it shows a view that I can't seem to replicate.
    The tutorial shows a browser window and the keywords are displayed below the images.
    Also, I am having difficulty adding a keyword to multiple images. I can select multiple images but I can only seem to change the highlighted image.
    -Mark

    OK, now I see what you mean. If you had written "below each image" in the first place, it would have been easier to understand what you mean.
    First you have to create a view that show only the keywords. This can be done in the Metadata pane in the Inspector. Click the gear wheel and choose "New view..." followed by giving it a name. Then, check "Keywords" after clicking the IPTC button in the bottom of the pane.
    Then, to set the preference for this view, you go to the Metadata pane in the Preferences. In the first section; "Viewer" you can set which metadata view you want to show up either below or over each image. Over each image means on top of each image but in the bottom part of the images. You will see the difference.
    Then, to show only the keywords just uncheck the "Show Labels" checkbox.
    Regards
    Paul K

  • How to detect if the display pdf in browser is checked for Adobe Acrobat 9

    How to programatically detect if the "Display PDF in browser" option is checked/unchecked in the Adobe Acrobat 9 Pro preferences? In earlier version it was possible to determine with navigator.plugins. Please help.

    Please update to the latest version of Adobe Reader i.e. 10.1.2 and enable the double sided printing as in the below figure:
    Hope this helps.
    Ankit

  • How to disable 'Enable JavaScript' and 'Display PDF in browser' in Adobe Reader 9.1 msi?

    I'd like to how to disable 'Enable JavaScript' and 'Display PDF in browser' in Adobe Reader 9.1 msi.
    Any help would be appreciated.

    NeoChang:
    You can modify the installation package using the Adobe Customization Wizard to toggle the "Display PDF in Browser" but I have not found a setting to disable JavaScript from the Wizard. I have created a script which makes the changes, but it has to be run for every user since that info is stored in the User hive of the Windows registry.
    Disable JavaScript:
    REG ADD "HKCU\SOFTWARE\Adobe\Acrobat Reader\9.0\JSPrefs" /v bEnableJS /d 0 /t REG_DWORD /f
    Disable Browser Integration:
    REG ADD "HKCU\Software\Adobe\Acrobat Reader\9.0\Originals" /v bBrowserIntegration /d 0 /t REG_DWORD /f
    Michael
    ~Simplicity of Character is a Natural Result of Profound Thought~

  • How to display file content in browser using servlet..? urgent!!!

    hello,
    i am building a application for which when a user logs in he will we redirected to page where he will have one link ,with this link a file is associated.
    when user press that link he should be able to see that particular file in internet browser....
    now can anybody give me a code sample of how to display a file in browser....
    please reply me as soon as possible...

    thanks for your reply....
    but i don't want this....
    i want to read a file from disk into stream or buffer and from that again reading and printing in browser.....
    a servlet should be built for this....
    i wrote this but its not working
    ========================================================
    public class FilePrinting extends HttpServlet
         public void doPost(HttpServletRequest req,HttpServletResponse res)
              throws IOException,ServletException
              ServletOutputStream out=res.getOutputStream();
              res.setContentType("text/html");
              String fileURL="/mydomainWebApp/Test.htm";
              res.setHeader("Content-disposition","attachment; filename=" +="Test.htm" );
              BufferedInputStream bis=null;
              BufferedOutputStream bos=null;
              try
                   URL url = new URL( fileURL );
                   bis=new BufferedInputStream(url.openStream());
                   bos = new BufferedOutputStream(out);
                   byte[] buff = new byte[2048];
                   int bytesRead;
                   // Simple read/write loop.
                   while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
                   bos.write(buff, 0, bytesRead);
              }catch(final MalformedURLException e)
                   System.out.println ( "MalformedURLException." );
                   throw e;
              }catch(final IOException e)
                   System.out.println ( "IOException." );
                   throw e;
              }finally
                   if (bis != null)
                        bis.close();
                   if (bos != null)
                        bos.close();
    =======================================================================
    please send me sample code if anyone have../...

  • How to display the velocity template in browser

    Hi All,
    Am new to vm. Can anyone help me, how to display the content of .vm file in browser ?
    Am able to display the content of .vm file in console.
    Whether this is because of any path issues ?
    Thanks in Advance.

    Hi PKG,
    I think the easiest way to achive this, is to design your RenderListItem form like your ShowForm and restrict the number of items in your collection renderer to "1".
    So a list is rendererd with exactly one item.
    Kind Regards
    --Matthias

  • Application/vnd.fdf not displaying in remote browser

    Hi,
    I was hoping someone could help me or point me to a topic that would. I didn't find what I needed after searching.
    I'm using Adobe's FDF Toolkit to build an fdf and send it to the browser.
    I have set my contentType to application/vnd.fdf and when I test it locally it works fine. I have both Acrobat Pro and Adobe Reader on my box and it uses Acrobat to open the resulting pdf.
    When I go to a remote box that only has Adobe Reader on it, the request for the pdf is submitted, Reader starts up, then displays a blank page.
    if I change it to just application/fdf, the browser doesn't know what to do with it right away and asks if you want to save or open it, if you choose open, then Adobe Reader displays the pdf correctly.
    i want to get this to work with the vdn.fdf setup since if I do just fdf, it asks you what you want to do and opens up a reader window, the displays the pdf in the browser. The reader window stays around.
    Does anyone have any ideas why it wouldn't work remotely?
    Thanks,
    Chris
    I'm inserting my code below:
    public class AdobeTestAction extends Action {
    * Constructor
    public AdobeTestAction() {
    super();
    public ActionForward execute(
    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws Exception {
    ActionForward forward = new ActionForward();
    AdobeTestForm adobeTestForm = (AdobeTestForm) form;
    String date = GregorianCalendar.getInstance().getTime().toString().replace( ' ', '_' ).replace( ':', '_' );
    try {
    FDFDoc fdf = new FDFDoc();
    fdf.SetValue( "borrowerName", adobeTestForm.getBorrowerName() );
    ... more SetValues()
    fdf.SetFile( "http://myServer/myPath/myPDF.pdf" );
    response.setContentType( "application/vnd.fdf" );
    ServletOutputStream out = response.getOutputStream();
    fdf.Save( out );
    catch ( Exception e ) {
    System.out.println( e.toString() );
    return null;
    }

    fdf is a Adobe PDF Form type file.
    It associated with adobe reader.
    it works if I do it as application/fdf, it just has a couple of side affects that way. It asks if you want to save or open first, and it opens reader and leaves it open.
    application/vnd.fdf works on my local test env. But it doesn't work when I try to hit it from a remote box.

  • How can I keep the browser window stretched across my two displays?

    I run am trying to run dual monitor setup and have the Firefox browser span the two monitors. Whenever a Firefox dialog opens, such as Preferences or Print, the window zooms to fit the one primary monitor. How can I keep the browser window stretched across my two displays?

    Thanks very much for your response to my question -very helpful.
    Do you have any recommendations for a good book on Edge Animate?
    Thanks,
    Shaun
    Date: Thu, 25 Oct 2012 17:10:43 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I change the browser window background color when playing an Edge animation?
        Re: How can I change the browser window background color when playing an Edge animation?
        created by heathrowe in Edge Animate - View the full discussion
    ADD this to compositionReady handler, change the hex color code to your desired color //Force body of webpage to a specific color$("body").css("background-color","#5d5e61"); Darrell
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4801409#4801409
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4801409#4801409
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4801409#4801409. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Edge Animate by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Firefox upgrade once downloaded displays a blank browser window...how can I fix?

    Firefox upgrade once downloaded displays a blank browser window...how can I fix?

    Are you using the Firefox 33.0.1 version?
    *Help > About
    You can find the full version of the current Firefox 33.0.1 release in all languages and for all Operating Systems here:
    *https://www.mozilla.org/en-US/firefox/all/
    You can check if you can start Firefox in <u>[[Safe Mode|Safe Mode]]</u> by holding down the Shift/Options key.
    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to install for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • How to display result of a query in browser?

    I have to write a simple application where I use EJB to access a database and then use Servlet/JSP to display the data to a browser. can anyone help me out please?

    in my ejb i am taking the input as claim number and using a select query i am getting the row for the particular claim number from the database. Through a servlet i need to invoke the ejb and get the data(result of the query) displayed in a browser. I want to know a way to display the query result in the browser.

  • How to display applet in the web browser?

    Hi Just want to ask help. Im making an application and i want to display applet in JSP. The problem is when i run my application there's no display in the browser. I already try to put the JSP and the Java Class with the same folder but still not working. Kindly help me with this one..
    Code:
    <jsp:plugin code="appletImage.class" codebase="applet" type="applet">
    </jsp:plugin>
    With this one i put my class in a package

    I think (correct me if im wrong) that that is the old way to do it i.e. it is now deprecated and that the recommended way now is to use the object tag
    Old deprecated way example
    <APPLET code="Bubbles.class" width="500" height="500">
    Java applet that draws animated bubbles.
    </APPLET>New recommended way example
    <OBJECT codetype="application/java"
            classid="java:Bubbles.class"
            width="500" height="500">
    Java applet that draws animated bubbles.
    </OBJECT>

  • Centering and displaying 100% in browser won't work.

    I believe I followed the instructions that were posted previously and I did some reading about centering a page and displaying the page at 100% but I can't seem to make them work correctly. I might have a conflict or something can you help.
    I designed a website which was 1000px wide and now they want it changed (they want an image on both sides of the page)-so instead of changing it around completely and trying to mess with the areas and buffers and all of that fun stuff. I decided to leave the #container (which is were all the data for the site is and were as the template is applied to other pages the size will change -the height will change but the width should stay 100px.)that was there and then wrapp it up completly in another div tag which i labeled #master_container then I inserted 2 more div tags and placed the images on either side as is desired. I followed the instructions above (because now the site is soo big displaying in a browser is diffacult). I need the site to do 3 things.
    -i need it to display centered on the page so that no matter what browser it is displayed in or what size screen it is viewed on it fits the center of the screen.
    -I also would like it to fit the screen of the person using it so that they see the whole page as one and there isn't a huge blank space on one of the sides -right now it is on the right.
    -if you know how to make the two images on the side of the screen scroll as the person scrolls down the page-(ie-so that they don't see part of the image sometimes and other parts of it when they move farther down-wouldl like it to scroll with them as they move down the page)
    HERE IS THE XHTML CODE OF MY SITE:
    <!DO.TYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    </style>
    <link href="../Unicorn_main_layout_template_oldform - CopytestCSS.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Master_container">
      <div id="ancestor_left"><img src="../Images/ancestor_cropped.jpg" width="659" height="1003" alt="ancestor right" /></div>
      <div class="container">b</div>
      <div id="ancestor_right"><img src="../Images/ancestor_cropped.jpg" width="659" height="1003" alt="ancestor_right" /></div>
    </div>
    </body>
    </html>
    HERE IS THE CSS STYLESHEET ATTACHED TO THE TEMPLATE I AM TRYING TO APPLY TO ALL OF THE PAGES OF THE SITE.
    @charset "utf-8";
    /* CSS Document */
    #body {
        text-align:center;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    #Master_container {
        width: 2300px;
        margin: 0 auto;
        text-align: left;
        margin-right:auto;
        margin-left:auto;
    #ancestor_left {
        float: left;
        width: 660px;
    .container {
        height: auto;
        width: 1000px;
    #ancestor_right {
        width: 660px;
        float: right;
    THANK YOU VERY MUCH FOR YOUR HELP!!!

    Ok I have no idea what i am doing wrong this is the most frusterating thing I have ever done. I will never build another webpage again.
    Here is the problem that I have i don't care how it gets solved but I just need it solved. this is over a week trying to solve one problem. I just don't have the time to do it anymore but I need it done.
    1) this page (http://practiceuploadingsite.info/) needs to be centered.  That's all just centered in the brosers that it opens in. (nothing I try seems to work)
    2) every other page on that website after you click into the home page (http://practiceuploadingsite.info/Pages/home.html) is made by the application of a template. All I want to do is keep eveything the same as it is right now and just add 2 background images (one on the right and one on the left) so that this:
    fits inside of the blank space of this:
    preferably so the images scroll down the page because the center colum will change height but not widith depending on the page the template is applied to. 
    I even tried to remake the template as to include the images all at once with the div tages and the header seems to have nothing but problems and I couldn't get them to stay together correctly. they keep coming up uneven and the header that is contained on the page spans the entire container and will not just stay the way it is.
    Just please tell me how to do this and you will never hear from me again.
    I am uploading the site information so you have the files I am working from Idk if it is something wrong with the headers the div containers or what but almost just put my computer through the window so I don't care how to get it done just please spell it out so I can follow it correctly.
    THANK YOU!!
    THIS IS THE MAIN LAYOUT TEMPLATE THAT IS APPLIED TO THE WORKING SITE THE WAY I WANT IT EXCEPT FOR THE IMAGES
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Unicorn Main Layout Template</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <style type="text/css">
    #container {
        width: 1000px;
    #header {
        width: 1000px;
        text-align:left
    </style>
    <!-- TemplateEndEditable -->
    <link href="../Stylesheet_Unicorn_main_layout_template.css" rel="stylesheet" type="text/css" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>css3menu.com</title>
        <!-- Start css3menu.com HEAD section -->
        <link rel="stylesheet" href="CSS3 Menu_files/css3menu1/style.css" type="text/css" /><style type="text/css">._css3m{display:none}</style>
        <!-- End css3menu.com HEAD section -->
    <link href="../Menu_bar_stylesheet.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="container"><!-- TemplateBeginEditable name="header_editable" -->
      <div id="header">Unicorn Writers Conference</div>
    <!-- TemplateEndEditable -->
      <div id="menubar_left">
    <ul id="MenuBar" class="topmenu">
    <!-- Start css3menu.com BODY section -->
        <li class="topfirst"><a href="../Pages/home.html" style="width:190px;">Home</a></li>
        <li class="topmenu"><a href="../Pages/Events.html" style="width:190px;">Events</a></li>
        <li class="topmenu"><a href="../Pages/Mission_Statement.html" style="width:190px;">Mission Statement</a></li>
        <li class="topmenu"><a href="../Pages/Resources.html" style="width:190px;"><span>Resources</span></a>
        <ul>
            <li><a href="../Pages/Advanced_Networking.html"><span>Advanced Networking</span></a>
            <li><a href="../Pages/Qurey_Review.html">Query Review</a></li>
            <li><a href="../Pages/MS_Review_Sessions.html">M.S. Review Sessions</a></li>
            <li><a href="../Pages/1-1 Sessions.html">1-1 Sessions</a></li>
            <li><a href="../Pages/Workshops.html">Workshops</a></li>
            <li><a href="../Pages/final_2013_DAY_SCHEDULE.pdf">Genre Chart</a></li>
            <li><a href="../Pages/Writers_links.html">Writers' Links</a></li>
        </ul></li>
        <li class="topmenu"><a href="#" style="width:190px;"><span>Key Presenters</span></a>
        <ul>
            <li><a href="#"><span>Speakers</span></a>
            <ul>
                <li><a href="../Pages/speakers_page_2013.html">Speakers 2013</a></li>
                <li><a href="../Pages/Speakers_2012.html">Speakers 2012</a></li>
            </ul></li>
            <li><a href="#"><span>Editors</span></a>
            <ul>
                <li><a href="../Pages/Editors_2013.html">Editors 2013</a></li>
                <li><a href="../Pages/editors_2012.html">Editors 2012</a></li>
            </ul></li>
            <li><a href="#"><span>Literary Agents</span></a>
            <ul>
                <li><a href="../Pages/L_agents_2013.html">Literary Agents 2013</a></li>
                <li><a href="../Pages/L_agents_page_2012.html">Literary Agents 2012</a></li>
            </ul></li>
        </ul></li>
        <li class="topmenu"><a href="#" style="width:190px;"><span>Information</span></a>
        <ul>
            <li><a href="../Pages/St_Clements.html">St. Clements</a></li>
            <li><a href="../Pages/Directions.html">Directions</a></li>
            <li><a href="../Pages/Hotel.html">Hotels</a></li>
            <li><a href="../Pages/Menu.html">Menu</a></li>
            <li><a href="../Pages/Unicorn_Photo_Gallery.html">Unicorn Photo Gallery</a></li>
            <li><a href="../Pages/final_2013_DAY_SCHEDULE.pdf">Day Schedule</a></li>
            <li><a href="../Pages/FAQ.html">FAQ</a></li>
            <li><a href="../Pages/Staff.html">Staff</a></li>
            <li><a href="../Pages/Contact.html">Contact</a></li>
        </ul></li>
        <li class="topmenu"><a href="../Pages/Registration.html" style="width:190px;">Registration</a></li>
        <li class="topmenu"><a href="#" style="width:190px;"><span>Acclaim</span></a>
        <ul>
            <li><a href="../Pages/Spotlights.html">Spotlight</a></li>
            <li><a href="../Pages/Testimonials.html">Testimonial</a></li>
            <li><a href="../Pages/Sponsorship.html">Sponsorship</a></li>
        </ul></li>
        <li class="topmenu"><a href="#" style="width:190px;"><span>Classifieds</span></a>
        <ul>
            <li><a href="../Pages/View_Classifieds.html">View Classifieds</a></li>
            <li><a href="../Pages/Place_Classifieds.html">Place Classifieds</a></li>
        </ul></li>
        <li class="toplast"><a href="../Pages/Merchandise.html" style="width:190px;">Merchandise</a></li>
    </ul><p class="_css3m"><a href="http://css3menu.com/">Horizontal Menu Using CSS Css3Menu.com</a></p>
    <!-- End css3menu.com BODY section -->
      </div>
      <!-- TemplateBeginEditable name="main_content_editable" -->
      <div id="main_content">
      <p>Main Content</p>
      </div>
      <!-- TemplateEndEditable --></div>
    <div id="footer">This Page was built webmaster- SKYFALL</div>
    </body>
    </html>
    HERE IS THE STYLE SHEET ATTACHED TO IT
    @charset "utf-8";
    /* CSS Document */
    #container {
        height:auto;
        text-align: left;
        width: 1000px
    #header {
        width:990px;
        height: 250px;
        clear:both;
        font-size:xx-large;
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        color: #C3F;
        margin-top: 5px;
        margin-right: 5px;
        margin-left: 5px;
        background-image: url(Images/header_final.png);
        text-align: left;
    #menubar_left {
        float: left;
        width: 200px;
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 5px;
    #main_content {
        float: right;
        width: 780px;
        margin-top: 5px;
        margin-bottom: 5px;
        margin-right: 5px;
        background-image:url(Images/parchment2.jpg);
        font-size: large;
        text-align: left;
        vertical-align: top;
    #footer {
        font-size: x-small;
        clear: both;
        width: 990px;
        margin: 5px;
    .title_mainmenu_content {
        font-family: "MS Serif", "New York", serif;
        font-size: 18px;
        text-decoration: underline;
        vertical-align: top;
    #container #main_content p1 {
        text-align: center;
        font-size: x-large;
    #container #main_content p2 {
        text-align: center;
        color: #F00;
    #container #main_content p span p4 {
        color: #F00;
    .Workshop_title {
        text-align: right;
        font-weight: bold;
    #container #main_content table tr td .title_mainmenu_content .title_mainmenu_content_jan {
    HERE IS MY ATTEMPT TO REDUE IT (STYLESHEET IS INCLUDED IN THE DOCUMENT I WILL MOVE IT LATER)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    #ancestor_left {
        width: 660px;
        float: left;
    #ancestor_right {
        width: 660px;
        float: right;
    #Master_container {
        width: 2340px;
    #wrapper {
        width: 1000px;
        float: center;
    </style>
    </head>
    <body>
    <div id="Master_container">
      <div id="ancestor_left"><img src="../Images/ancestor_cropped.jpg" width="659" height="1003" alt="ancestor image left" /></div>
      <div id="wrapper">What the heck is wrong with this</div>
      <div id="ancestor_right"><img src="../Images/ancestor_cropped.jpg" width="659" height="1003" alt="ancestor image right" /></div>
    </div>
    </body>
    </html>

  • How to display a website page in a JSP textarea ?

    Hi all...
    I am developing an application where i need to display a web page in a text area, the same
    way it gets displayed in a web browser (like IE, mozilla). After that i will read the page and will extract text from it for further processing.
    My JSP contains a text field where i can type the URL address (say http://www.yahoo.com)
    What i want is, when i will click a submit button, the web page at the given URL should be retrieved and should get displayed in the textarea that is present on the same page. (It should be displayed in the same way as it
    gets displayed on the browser.)
    Is that possible ? Can it be done using some other ways ?
    It is a small application that i am developing using struts 1.1.
    Can some one help in this regard ?
    Thanks in advance..
    Regards
    Prasad

    Thanks BalusC..
    I have used iframe now and it is working for the URL specified.
    But even then i have couple of doubts..
    1. How should i use the iframe if i want to navigate on the further web pages within the same frame ?
    (e.g. if with URL say http://www.yahoo.com, the home page is displayed in the frame, now if i click any link
    on the page the next navigation should occur within given frame only.)
    2. Can i read the page from the frame and write the text into some file say text file ?
    Hope you understand my problem...
    Thanks a lot..
    Prasad

  • Acrobat 9.5.0 - when logged in as ONE user unselect "Display PFD in browser" don't work

    Have Acrobat standard v9.5.0 running on Win7 - 64 bits. All up to date patched. On one user I can not let PDF files downloaded from the Internet open in an external window. I in the Preference I have unselected "Display FDP in browser".   Then I can see the file is downloaded, but never opened. I if select "Display FDP in browser" it is (now) OK. If I uninstall IE9 and am running IE8 or Firefox, everything is fine. It is also fine if I log in as another user.
    I have uninstalled Adobe Acrobat and reinstalled. Uninstalled IE9 and reinstalled. My conclusion is that there is something wrong with the registry HCU part for the "problem" user. I have deleted HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0 but still I have problems.
    My question is: Which part of registry controls IE9 and opening PDF files downloaded from internet? How can I find the "bad registry key" for the problem user?
    Thanks in advance
    Harald

    Is IE9 Security preventing the download of the file?  IE9 has a security feature that does this and pops a dialog at the bottom of the browser window, you might want to check it out.

Maybe you are looking for

  • Selecting multiple files with mouse now wonky

    Using Windows 8.1 on HP machine All updates up-to-date Hardware: Microsoft Intellimouse Explorer 3.0 Explorer Folder Option selected: Single-click to open an item (point to select); Underline icon titles only when I point on them Display: Detail list

  • Copying iTunes music folder but keepin' MY music organized MY way!!

    The questions been asked a hundred times: how do I move my iTunes library to an external hard drive? Yeah, I have the same question, but with a few differences. Basically, I keep my music folder organized as I like it. Consolidating the Library screw

  • SAPScript:GRN Printing Label

    Hello Experts, I m working on SAPScript .My requirement is i want to add storage bin(MARD-LGPBE) field in SAPScript for GRN Label printing FORM:(rm07etikett).Everything else is coming from mseg, mkpf, ekko table but not from MARD Plz sugget how to pr

  • Just tried to trial the Adobe Photoshop CS6 as having issues trying to use disks...

    Downloaded fine but no matter what version I try downloading I seem to get message setup.xml could not be loaded.  File corrupt?  Help please am no techie and been on it all morning using vista home basic service pack 2 if it helps?  Thanks.

  • BDC on transaction CV02N handling the Custom Control

    Hi Guru's,        I am developing a BDC program for the transaction CV02N. This transaction is for Changing the document link. Here I need to delete the existing Document links and create the new ones.      I am facing the issue for Deleting the docu