[php] form feedback help menu

User Tag List

Results 1 to 7 of 7
  1. #1
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1192
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [php] form feedback help

    Hey guys, for apart of my A-Level ICT i need to create a website etc etc but it needs to have a feedback page, now i have the correct HTML and PHP feedback info but when i hit submit it tries to download the .php file instead of sending the email ,any ideas?

    cheers

    ~2d~

    edit: i can post the code if u like.
    Last edited by 2dgreengiant; 10-19-2009 at 12:36 PM.
    If you need me you have my skype, if you don't have my skype then you don't need me.

    [php] form feedback help
  2. #2
    Dragonshadow's Avatar ★ Elder ★
    Reputation
    1170
    Join Date
    Apr 2007
    Posts
    3,858
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea code would be helpful lol
    Look at your post, now back to mine; Now back to your post, now back to mine. Sadly, it isn't mine, but if you stopped trolling and started posting legitimate content, it could look like mine. Look down, backup, where are you? You're scrolling through threads, reading the post your post could look like. What did you post? Back at mine; It's a reply saying something you want to hear. Look again and the reply is now diamonds.

    Anything is possible when you think before you post. The moon is shrinking.

  3. #3
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1192
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Most of the html code:

    Code:
    <table width="400" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr>
    <td><form name="form1" method="post" action="feedback.php">
    <table width="100%" border="0" cellspacing="1" cellpadding="3">
    <tr>
    <td width="15%">&nbsp;</td>
    <td width="4%">&nbsp;</td>
    <td width="81%">&nbsp;</td>
    </tr>
    <tr>
    <td><span class="style5">Detail</span></td>
    <td><span class="style5">:</span></td>
    <td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td>
    </tr>
    <tr>
    <td><span class="style5">Name</span></td>
    <td><span class="style5">:</span></td>
    <td><input name="name" type="text" id="name" size="50"></td>
    </tr>
    <tr>
    <td><span class="style5">Email</span></td>
    <td><span class="style5">:</span></td>
    <td><input name="customer_mail" type="text" id="customer_mail" size="50"></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td>
    </tr>
    </table>
    </form>
    </td>
    </tr>
    </table>
    php:

    PHP Code:
    <?php 

    $msg 
    "Name:t$namen";
    $msg .= "Email:t$emailn";
    $msg .= "Comments:t$commentsn";

    $recipient "[email protected]";
    $subject "New Feedback from my site";

    $mailheaders "From:$emailn";
    $mailheaders .= "Reply-To:$emailnn";

    mail($recipient$subject$msg$mailheaders);
    header("Location: http://www.yoursite.com/thankyou.html");
    ?>
    If you need me you have my skype, if you don't have my skype then you don't need me.

  4. #4
    Hellgawd's Avatar Member
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it tries to download the code, it means you don't have PHP on your server.
    Hence, when it reaches the php file, it goes, 'LOLWUT, LETS DOWNLOAD EET'
    (You're not trying to run this locally, are you?)

  5. #5
    Dragonshadow's Avatar ★ Elder ★
    Reputation
    1170
    Join Date
    Apr 2007
    Posts
    3,858
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Hellgawd View Post
    If it tries to download the code, it means you don't have PHP on your server.
    Hence, when it reaches the php file, it goes, 'LOLWUT, LETS DOWNLOAD EET'
    (You're not trying to run this locally, are you?)
    I answered him on msn before you posted lol
    Look at your post, now back to mine; Now back to your post, now back to mine. Sadly, it isn't mine, but if you stopped trolling and started posting legitimate content, it could look like mine. Look down, backup, where are you? You're scrolling through threads, reading the post your post could look like. What did you post? Back at mine; It's a reply saying something you want to hear. Look again and the reply is now diamonds.

    Anything is possible when you think before you post. The moon is shrinking.

  6. #6
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1192
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Found out how to do this in just html, cheers tho
    If you need me you have my skype, if you don't have my skype then you don't need me.

  7. #7
    Dixo1's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its it cusr you are trying to send from a html script to a php script in just your browser? Cuse you need to have the files located on a web server before it should work :-D

Similar Threads

  1. LAZYBOT! Trouble with flight form... Need HELP!
    By Alyzter in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 07-19-2014, 10:50 PM
  2. [Buying] Need feedback help with ebay offering D3 gold for help!!!!!!!!!!!!!
    By ruddick83 in forum Diablo 3 Buy Sell Trade
    Replies: 7
    Last Post: 08-24-2012, 07:48 PM
  3. Reviving an old idea - need feedback/help(?)
    By Clearcurse in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 04-03-2011, 03:12 PM
  4. [HTML & PHP] Register & login help.
    By Ascelyn in forum Programming
    Replies: 5
    Last Post: 04-08-2010, 02:55 AM
  5. [PHP-SITE] Little Help With A Code...
    By viKKmaN in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 03-16-2008, 07:12 AM
All times are GMT -5. The time now is 05:38 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search