Jump to content

AV1611

Members
  • Posts

    997
  • Joined

  • Last visited

Posts posted by AV1611

  1. you can't do it with php unless you also use tck (tcl? something like that).  PHP by itself is server side.  You could run a web session or a dos box application, but you ain't gonna do a desktop app by itself.  You need something else that provides the client side widgets, etc.

     

  2. it's

     

    salary <= '20000'

     

    if you do

     

    salary == '20000'

     

    it won't work unless you have  a dropdown rather than a text entry.

     

    You prolly are using a dropdown, but I just thought I'd mention that cause you said:

     

    // find stuff under 20k

     

    which is won't, it will only find exact match.

     

     

    Sorry for splitting hairs :D

     

  3. I need to do a header after a successful query.

     

    normally, it's

     

    header('Location: domain.com')

     

    Can I do it so it just goes to

     

    index.php?sql=good

     

    ???

     

    I don't want to use the domain, cause the script is not going to stay on this server...

     

  4. I have a Linux server with Postfix.  I use IMAP in maildir format. Each email message is a separate email file.

     

    What I want to know is there an already existing set of functions in PHP will allow me to extract the data from the file, determine if it's text mode or html mixed mode, etc.?

     

    Or, do I have to write my own functions to parse out the file.

     

    I am going to write a program to archive old emails and store the file in an alternate location and parse the to, from, & subject into a database along with the location of the original file.  That much I can handle.  What I need to do is be able to display the file as a webpage.  That's the part I've not figure out yet.

     

    You know, your basic mail archival system ;D

     

    Can anyone point me in the right direction/

  5. I'm baffled.  I have a site that uses an iframe as a menu to feed the main page.  Sounds wierd but works kinda cool.

     

    Anyways, here's the link:

    http://trinasworld.com/photoalbum.php/index.php

     

    Here's the problem:

     

    Everything after the div containing the iframe does't display.  Huh?  The "view source" shows the info there and w3c validates.  Why can't I display any content to screen after the iframe.  I tried moving the iframe div to before the pic div and the pic stops displaying. FF and IE same issue.  HELP! 

     

    I inserted ******** into the code to show the point It stops working. (This is the html output as viewed with view source)

     

    <!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' xml:lang='en' lang='en'>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>index.html</title>

    <style type="text/css">

    body

    {

    background-color: black;

    margin: 0px;

    padding: 0px;

    }

    iframe

    {margin: 0px;}

    p.title

    {font-size: 48px;

    font-style: italic;

    text-align: center;

    color: #bbb;}

    img

    {

    width: 640px;

    }

    </style>

    </head>

    <body>

     

    <p class="title">Trina's Pictures</p>

    <div style="height: 600px; width: 790px; margin: 0px; padding: 0px; margin-left: auto; margin-right: auto;">

     

     

     

    <div style="float: left; height: 550px; width: 660px; padding: 0px; background-color: white;">

    <div style="width: 640px; height: 500px; margin-left: auto; margin-right: auto; margin-top: 10px; background-color: white;">

    <div style="width: 100%; height: 500px; margin: 0px; padding; 0px;">

    <img class="pic" src='pics/trees.jpg' alt="www.BLMHosting.com" />

    </div>

    <div style="100%; height: 50px; margin: 0px; padding; 0px;">

    <p style="margin-bottom: 10px; text-align: center;">Trees in the mountains</p>

    </div>

    </div>

     

    </div>

     

    <div style="float: right; height: 550px; width: 120px; margin: 0px; padding: 0px;">

     

    <iframe width="120px" frameborder="0" name="thumbnail"  height="550" src="thumbnail.php" scrolling="auto" />

    </div>

    ***********************the rest doesn't show up*********************************************

    </div>

    <p style="color: #bbb; font-style: italic; text-align: center; background-color: pink;">"The way of life  is above to the wise, that he may depart from hell beneath."  <a href="http://restoringthetruth.org/randversedisp.php?passage=Proverbs&Chapter=15">Proverbs 15:24</a></p>

    </body>

    </html>

  6. I really need to find a solution for php/pdf.  I just haven't spent the time to research it.

     

    I settled on RTF.

     

    It seems to behave in M$ and Linux ok and give some formatting that .txt doesn't.

     

    (It doesn't do pictures at all does it?)

     

    Does anyone see any issues with using RTF?  It's not gonna deprecate any time soon I don't think.

     

    This is a good link of how to format RFT

     

    http://www.biblioscape.com/rtf15_spec.htm

     

  7. Sigh...

     

    I've wasted too much time. I admit it. I can't figure this out.

     

    I have a simple project.  I want to fill out a webform and when you click submit, it pushes a dynamic file to the user for download.

     

    I almost have it working... but...

     

    If I use content-type: application/msword doc

     

    then if you use OO.O (as I do) it works great, but in M$ Word, it asks user to convert format.  NO GOOD.

    If you use

    content-type: plain/txt

     

    then it is a mime type and the browser just displays the file.

     

    How can I make the submit either a txt or doc file ( I really don't wanna make a pdf but that's really what it should be ) that simply downloads?  Is there a way to make the headers download rather than display as a mime type file?

  8. Sorry,

     

    What I meant was:

     

    If I have to take the form, write the variables to the file, then download the file and forward to another page, and two folks do that at the same time, how do I make sure that the file was not changed with the other persons variables?  or am I being too careful?

  9. I have a form that when submitted goes to a processor that does this:

     

    <?php
    header('Content-type: application/vnd.ms-word');
    header('Content-Disposition: filename=file.doc');
    echo "This is a variable: ".$_POST['blah']."\n";
    //etc...
    ?>

     

    The form submits and the file is downloaded no problem.

     

    How can I make it so the page also forwards to a new page.

     

    If I add

    header('Location: newfile.php');
    

     

    It forwards but no file is downloaded.

     

    Help.

     

     

  10. Not sure if I can do this with javascript.  I like to work with PHP only...

     

    Here's what I need to do:

     

    I have an online form.  When you click submit, I want it to do two things:

    1.  Open a "printable" page that they can sign and mail in via snail mail (or fax)

    2.  Send an email with the form information.

     

    I can do each on separately as php scripts, but can they both happen with a single submit button click?

     

    (does the email headers count as output preventing the header from going to the new page or whatever?)

     

    I think I want it to capture the data, send the email, then build the form as a printable webpage or as a .doc or .txt file with download headers.

     

    I just need concept help, not actual code help.  Thanks.

     

  11. So, there is no way to tell when a given record was last edited, only when the table with show status command.

     

    The question is larger.  Basically, I'm trying to "retrofit" an application that tracks jobs.  Once the job is closed, it can bet edited again if there is a change (sorry, not my design) and I need to write a cron that emails a list of what jobs have been changed since they were status as closed so everyone knows it's open again.

     

    Hmmm... I got an idea...

     

    The job is status closed when the "status" field is populated with a date. (It's blank until then) Maybe I can write a clause that says any time a record is edited, if the field is not blank, then blank it and send the email at that time.  Makes more sense to me that you :P

     

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.