+ Post New Thread
Page 4 of 4 FirstFirst 1234
Results 46 to 47 of 47
Coding Thread, PHP form in Coding and Web Development; Perfect! Thanks :-D Anyway to remove the ' Submit: Submit' from email output?...
  1. #46

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    7,121
    Thank Post
    403
    Thanked 619 Times in 566 Posts
    Rep Power
    180
    Perfect! Thanks :-D

    Anyway to remove the 'Submit: Submit' from email output?

  2. #47

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,403
    Thank Post
    637
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319
    You're welcome.

    Yes, you can. After line 88, you just need to remove the 'submit' key from the $_POST array (just add the 'unset()' function as shown below):

    Code:
    ...
    if ($error_msg == NULL && $points <= $maxPoints) {
        $subject = "Automatic Form Email";
    
        unset($_POST['submit']);
    
        $message = "You received this e-mail message through your website: \n\n";
        ...

    CESIL: Might as well use something that's already there. It's not perfect, and if re-done from scratch I'd definitely change it. But it works

SHARE:
+ Post New Thread
Page 4 of 4 FirstFirst 1234

Similar Threads

  1. [PHP] Form to Email.php
    By tomgrindle in forum Web Development
    Replies: 4
    Last Post: 26th April 2011, 12:26 PM
  2. HTML/PHP form problem
    By glennda in forum Web Development
    Replies: 4
    Last Post: 17th November 2010, 10:22 AM
  3. PHP - Form POST script
    By BarryWAaMC in forum Coding
    Replies: 9
    Last Post: 31st March 2010, 11:32 AM
  4. [PHP] PHP Form Generator
    By _Bat_ in forum Web Development
    Replies: 1
    Last Post: 25th March 2009, 11:39 AM
  5. PHP form validation
    By thesk8rjesus in forum Web Development
    Replies: 10
    Last Post: 21st January 2009, 12:09 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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