Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9061025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:22:57+00:00 2026-06-16T15:22:57+00:00

Possible Duplicate: method=post enctype=text/plain are not compatible? I know this topic was few times

  • 0

Possible Duplicate:
method=“post” enctype=“text/plain” are not compatible?

I know this topic was few times on this forum, but none of this solved my problem.

When i try send “contact” data from html site, using method POST, on my php site im getting empty $_POST. I checked one hundert sites and tutorials. I did exacly same like it was showed… Using method “GET” im getting data, but i cant go this way. URL too long.

this is my HTML code.

<form  name="post" id="post" method="POST" action="http://podsmoczymdiamentem.host56.com/post.php"  enctype="text/plain">
<table BORDER="0" CELLSPACING="0" CELLPADDING="4">
<tr><td colspan="2"><b>Tytuł:</B></TD></tr>
<tr><td colspan="2"><input type="text" name="tytul" id="tytul" size="30"></TD></TR>
<tr><td colspan="2"><b>Treść:</B></TD>
<tr> <td colspan="2"><textarea name="opowiadanie" cols="70" wrap="virtual" rows="30"></TEXTAREA></TD></TR>
<tr><td align="right"></TD><td align="right"><b>Imię:</B><input type="text" name="autor" size="20"></TD></TR>
<tr><td></TD><td align="right"><b>e-mail:</B><input type="text" name="e-mail" size="20"></TD></TR>
<tr> <td>&nbsp;</TD> <td align="right">
<input type="submit" name="submit" value="Wyślij"><input type="reset" name="reset" value="Wyczyść">
</TD></TR>
</TABLE></FORM></div> 

and PHP

<?php
      if (empty($_POST['submit'])) {
        echo 'Wiadomość jest pusta!';
     }else{    
      $autor = $_POST['autor'];
      $tytul = $_POST['tytul'];
      $subject = "$autor nadesłał swoją opowieść: $tytul";
      $nadawca = $_POST['e-mail'];
      $adresat = 'podsmoczymdiamentem@gmail.com'; 
      $opowiadanie = $_POST['opowiadanie'];
      $headers .= "Content-Type: text/html; charset=ISO-8859-2\r\n";
      $subject = "=?ISO-8859-2?B?".base64_encode($subject)."?=";
      $tresc = "Witaj Marcinie. Użytkownik <b>$autor</b> nadesłał opowiadanie do twej karczmy. Oto ono:<br><br><b><h1>$tytul</h1></b><br><br> $opowiadanie";
      $mail_sent = @mail( $adresat, $subject, $tresc, $headers);
      if($mail_sent == TRUE)
        echo 'Wiadomość została wysłana.';
      else
        echo 'Ups. Coś nie wyszło. Skontaktuj się z karczmarzem PSD w celu wyjaśnienia problemu.';
      }
?>

what im doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:22:58+00:00Added an answer on June 16, 2026 at 3:22 pm

    You are using the wrong encoding type. Use application/x-www-form-urlencoded instead of text/plain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Private virtual method in C++ If I understood correctly from this post
Possible Duplicate: When should I use GET or POST method? What’s the difference between
Possible Duplicate: $.ajax context option I've got some code that looks like this: $.post(self.baseUrl
Possible Duplicate: Displaying Date from database PHP I'm using this method in an insert.php
Possible Duplicate: php array not returning on first load Hi this is driving me
Possible Duplicate: Define a method that has many (or infinite) arguments I have the
Possible Duplicate: Calling virtual method in base class constructor Calling virtual functions inside constructors
Possible Duplicate: The best overloaded method match for 'XDevkit.IXboxDebugTarget.GetMemory(uint, uint, byte[], out uint)' has
Possible Duplicate: Where are the request method constants in the Servlet API? I'm looking
Possible Duplicate: C++ STL: Which method of iteration over a STL container is better?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.