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

  • SEARCH
  • Home
  • 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 7699509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:29:43+00:00 2026-05-31T22:29:43+00:00

<?php echo $_POST[‘ss’];?> <form action=<?php echo $_SERVER[‘PHP_SELF’];?> method=post> <input name=ss type=text /> <input type=submit

  • 0
<?php echo $_POST['ss'];?>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
<input name="ss" type="text" />
<input type="submit" name="submit">
</form>

This code should print whatever is enter in text box name=”ss” when click submit.
But its not printing. Working with method=”get” but not with post, What’s the problem.

  • 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-05-31T22:29:44+00:00Added an answer on May 31, 2026 at 10:29 pm

    If you’re just refreshing the page, do:

    action=''
    

    instead of:

    action="<?php echo $_SERVER['PHP_SELF'];?>"
    

    Also, add this to line 2 to see what’s being stored (if anything) in the $_POST array:

    var_dump( $_POST );
    

    Hmm… so it’s empty on submit? Try adding this to the top of your php file:

    if(empty($_SERVER['CONTENT_TYPE']))
    { 
      $_SERVER['CONTENT_TYPE'] = "application/x-www-form-urlencoded"; 
    }
    

    Okay, now check your php.ini (normally requires sudo or root in /etc):

    post_max_size = 8M
    variables_order = "EGPCS"
    

    Do you have those two rules set? If so, be careful of how much memory you’re allocating. Anything over 2048MB could start to give you trouble, depending on your system specs.

    NOTE: If you make changes to your php.ini file and PHP is running as an apache module, you’ll need to restart apache. Something along the lines of:

    sudo /etc/init.d/httpd restart
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<?php echo $_POST['$P'].<BR>; ?> <form method=post action=> <input type=password name=p> <input type=submit> </form> I
My form <form action=saveProfile.php method=post name=ProfileUpdate id=ProfileUpdate > <input name=Smeknamn id=Smeknamn type=text value=<?php echo
In form.php <html> <body> <form action=process.php method=post> <input type=text name=dat /> <input type=submit value=submit
Given the following two HTML/PHP snippets: <input type="text" name="firstname" value="<?php echo $_POST['firstname']; ?>" />
I have this: main.php: ID: <input name=id id=id type=text size=20 value=<?php echo $_POST['id']; ?>><br>
I can't figure out why... This works: <?php if($_POST['test']) echo posted; ?> <form method=POST
<script type='text/javascript'> $(document).ready(function() { $(#specific_consultant_yes).click(function() { $('.specific').show('slow'); $.post(<?php echo $this->url(array('controller'=>'appointment', 'action' =>'available'),'default',true)?>,{app_date:$(#App_date).val(),consultant:$(#Consultants).val()} ,function(data){ $(.new).html(data);
i have this code : <?php echo $_POST['id-input']; $time = time(); $ip=$_SERVER['REMOTE_ADDR']; $userid_c =
In abc.php, i have a form whose action is xyz.php. I want $email=$POST['txtEmail'] to
$.post('includes/script.php', $(this).serialize(), function(data) { $('body').append(data); }); alert ($('#new').length) php script is <php echo <div

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.