51 users online (0 members and 51 guests)  


Page 2 of 2 First 1 2
  Results 16 to 28 of 28

Related

  1. CSS Buttons and the Submit    Forum: CSS Forum
    Replies: 5
  2. Multiple Submit buttons    Forum: HTML Forum
    Replies: 3
  3. Submit / Reset / Browse Buttons    Forum: CSS Forum
    Replies: 1
  4. multiple submit buttons in single form    Forum: HTML Forum
    Replies: 7
  5. Images with submit buttons    Forum: HTML Forum
    Replies: 1
  1. #16
    ZIonsWrath's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2003
    Posts
    15
    No I just checked and .Mac does not support PHP as well as a hand full of other things =[ Is there a way I can do the same thing through HTML? Seems to be my last option besides getting another place to host my site.

  2. #17
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    the only 'pure' html method is to put an 'action="mailto:badger@set.com"' , but this only works in 2% of cases , sorry
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #18
    ZIonsWrath's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2003
    Posts
    15
    okay i have found a free web host that supports php and have ut my site online temporarily to work out this problem. You can visit it at:

    http://www.weaponsdatabase.frandt.com/advertising

    Now when I click the submit button I recieve an error message like page can not be displayed. You can get the source for the page from there and here is the PHP script I am using:

    <?
    // Filename: mailer.php

    // Generic Emailer

    // Default Settings

    $redirect = "My_thank_you_page.html";



    // First, detects whether info is received via form -

    $recipient = "email removed";

    $subject = "Advertising on WDB";

    $from = "From: My Website Emailer";

    $email = "
    ";

    $data = $HTTP_POST_VARS;

    foreach($data as $k => $v) {

    $k = stripcslashes($k);
    $v = stripcslashes($v);

    $email .= "\n$k : $v";



    }


    mail($recipient, $subject, $email, $from);

    header("Location: $redirect");



    ?>

  4. #19
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Your form Action is incorrect, pointing to the wrong place. Make sure its pointed at wherever you saved mailer.php
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #20
    ZIonsWrath's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2003
    Posts
    15
    I have all of my files in one folder. Yes it is unorganized but thats where all the files are so how can I point to it?

  6. #21
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    well, where is mailer.php ? only you know.

    Is it here - http://www.weaponsdatabase.frandt.com/advertising/mailer.php ? because your form is not pointing there, its pointing at http://www.weaponsdatabase.frandt.com/mailer.php
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  7. #22
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Its working fine. You have set the $redirect to "thanks". There is no filename called thanks so it gives a 404

    You should be getting emails from it. Im worried that I can see the php when I look at mailer.php tho. Sounds like its not working.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  8. #23
    ZIonsWrath's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2003
    Posts
    15
    No I am not recieving emails from it. Look, I am using a mac and a program called trasmit to upload stuff here is what is currently in the wwwroot folder:

    http://www.weaponsdatabase.frandt.com/picture%208.pdf

    everything seems to be in the right spot.

  9. #24
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    look here -
    http://www.weaponsdatabase.frandt.com/mailer.php

    You can see the php source. You should not be able to, as php is processed at the server end and the results transmitted to browser. This is not happening here. Again, best to speak to your host as to why PHP is not being parsed properly.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  10. #25
    ZIonsWrath's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2003
    Posts
    15
    When I clicked the link it downloaded the PHP to my computer, I will speak to the support guys about this and let you know what happens.

  11. #26
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Quote Originally Posted by ZIonsWrath
    When I clicked the link it downloaded the PHP to my computer, I will speak to the support guys about this and let you know what happens.

    Try to chmod it to 755, if you do not know what this is let me know and post what ftp you are using.

    Dave

  12. #27
    Enigma's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Nov 2000
    Posts
    426
    Look, I am using a mac and a program called trasmit to upload stuff

  13. #28
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    oops, I missed that.

    Oh well I never heard of it, guess we will wait to see what the host says.

    Dave



Page 2 of 2 First 1 2

Tags for this Thread