Page 3 of 14 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 137

Thread: javascript? php? simple mailing list database?

  1. #21
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ahhhh did I F&%^ it up? Where abouts?

  2. #22
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Wow, my bad.

    if (strlen($filecontents) > 0) $comma = ", ";

    just use that.

    i'm sorry.... I changed both functions; only one needed to be changed.. giving you the error.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #23
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    YAY! ok works!!!!

    This is probably my fault but it doesn't redirect anymore: http://www.curiousclothing.com/email_form_test.php, also is there any way to add the email to be from the actual address the person types in? At the moment it just says from apache

  4. #24
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Can you please duplicate your page, and rename it .phps?
    that will show the source (otherwise hidden as it's php).

    I'll look later... gotta run...
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #25
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

  6. #26
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Ok, I understand what is going on.

    the message displayed is still from when it WAS supposed to redirect.

    This would make a LOT more sense if it was in a layout.

    Here's the deal:

    VERSION 1: with redirect:
    The page includes, somewhere on it, a form.
    when this form is sent with an email address,
    you are sent back to the SAME page, for it to be interpreted.
    when it does it's thing, it saves a message saying that it did it.
    then it MAKES the page BLANK except for the simple message and a redirect.
    That redirect then sends it back to your "main page", though it IS the same file.

    VERSION 2: no redirect:
    Same as above.
    the form, then the form is sent:
    it saves a message
    however, this time, it displays the message ON THE PAGE,
    where the form would have been.


    It is working perfectly right now.

    Find and change the message lines to these:
    $message = "Your email was added to the mailing list.";

    $message = "Your email was removed from the mailing list.";

    removing from both:
    "<br>Redirecting to the last page.";


    That text was just left over.

    When you put this in a layout, it'll do exactly what you want... it'll replace the form with the message. Remember to put the form in a div or table, so it can't expand with the message:
    <div width="150">PHP and FORM GO HERE</div>
    That way, it'll fit the same space.


    That make sense?

    Sorry... I've made a couple mistakes here... figuring it out as we go. Seems like it's working now, though.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #27
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    your a legend! thanks! here you go thought you'd want to see it in all it's glory: http://www.curiousclothing.com, can you make the email come from the email address the person has entered? Or does it have to come from Apache?

  8. #28
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Pretty cool. you should add php around that alert.

    Change your body tag to this:
    PHP Code:
    <body<?php if ($messages == "") { ?> onLoad="MM_popupMsg('Curious? You should be. Sydney&rsquo;s rebel Ronins of streetwear are dropping their Kimono&rsquo;s and picking up gear sharper than any katana from the label that killed the cats you used to love.\r\rLike an army of modern day Mifune, the Samurai of the street blend into their surroundings, snuffing the less than worthy with killer prints and cuts this season.\r\rSleek, clean killers the Curious clothing range Ronin and Geisha are decked out in tees and singlets that reflect the nature of our fine city &ndash; crucifixes in a sombre, demure black print or laughing in the pews with glitzy, ironic silver or gold foil. The hurricane-fence print reminds you of which side of the tracks you hail from&hellip; Skulls bump heads with the clouds in a range that comes from the street, but stretches to the sky. Fashion victims? Maybe&hellip;.\r\rstockists?? + 61 415 397 606');"<?php }?>>
    That way, it'll only pop up the first load, not after you submit your email.


    You also changed this: $filename = "emails.phplist";
    ...I think.
    if I try to view that, it doesn't appear to exist.

    I was just gonna check how it's saving them, then see how it works to remove them.

    What's the new filename? (PM to me if you want to keep it hidden, though I don't think anyone will really care here)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #29
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    By the way, that page is REALLY hard on the eyes. Depending on your audience, maybe, I'd definitely tone it down. Looks like it might just appeal to friends, so that's probably ok.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  10. #30
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nice idea about only popping up once, but it still pops up, heres the code:http://www.curiousclothing.com/index_code.phps, also yea for some reason it doesn't create that file list... do I need to make the file first?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •