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 8928551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:27:52+00:00 2026-06-15T08:27:52+00:00

I have a form, where I submit the data to $_POST[‘foldername’] createdir.php below <form

  • 0

I have a form, where I submit the data to $_POST['foldername']

createdir.php below

<form action="mkdir.php">
    <input type="textarea" name="foldername" id="foldername">
    <input type="submit" value="Create directory">
</form>

Then I have mkdir() that should have a path including the name got from a input field, but the problem is, that it doesn’t get the data from input. I tried to print it as well, but all I get is /images/ but I should (at least I hope to) get /images/nameFromInput.

mkdir.php below

<?php
$foldername = $_POST['foldername'];

$path = 'images/' . $foldername;
mkdir($path);
header('Location:createdir.php')
?> 

Where’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-06-15T08:27:54+00:00Added an answer on June 15, 2026 at 8:27 am
    <form action="mkdir.php" method="POST">
    

    You forgot the method.

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

Sidebar

Related Questions

I have html form with submit button and input='file' control: <form action=/Profile/UploadFile enctype=multipart/form-data method=post
Hi I have a form that data post something weird... HTML: <form> <input type=radio
In my sinatra app i have a form which is used to submit data
In my iOS application I have made a form that should submit data into
I have a form with lots of data. There is a Submit button. Upon
i have a submit page in html . when i submit the form data,
i have a PHP contact form that submits data, and an email...: <?php $dbh=mysql_connect
I have a form. This form will submit data to 2 different pages. After
I have a form in my MVC application that in theory should submit data
I have a form/page that seems to submit the form data when the page

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.