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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:09:19+00:00 2026-05-23T19:09:19+00:00

i have problem at php $_POST code. this is the my codes? what i

  • 0

i have problem at php $_POST code. this is the my codes? what i do wrong?

this is index.php

<form action="upload.php" method="post" id="form">
<input type="text" name="fname" size="87" />
<input type="submit" style="display:none" />

if i click the submit, page going to upload.php and white screen. and i look at the sample.txt, it’s like a:

<h1></h1>

this is upload.php

$yazi=$_POST['fname'];
$fo = fopen("sample".".txt", "a");
fwrite($fo, '<h1>'.$yazi.'</h1>');
fclose($fo);

what can i do for fix?
and i using jquery submit. so not a problem display:none, i think.

  • 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-23T19:09:20+00:00Added an answer on May 23, 2026 at 7:09 pm

    There is nothing wrong happening, the white screen is how it should be working.

    After you are done processing in upload.php, you can redirect the browser somewhere with the Location header directive. For example:

    header("Location: http://mypage.com/where_to_go_after.php");
    

    The empty $var problem, try using " like:

    fwrite($fo, "<h1>".$yazi."</h1>");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this jQuery plugin: http://api.jquery.com/slideToggle/ I have this code: <div id=panel><form action=postit.php
I have the problem, that PHP replaces all spaces with underscores in POST and
I have a problem in php code inserting values into database (I use PHPMyAdmin).
I have a bizzare problem with php date function. code: $numDays = 8; $date
I'm working with PHP 5 here. I have the following code: $data = json_decode($_POST['data']);
I'm using this code to submit a form to a php script: var valid
I have a problem with my JQuery, Ajax, and PHP code. I have a
I have a problem with this jQuery code. It doesn't work as expected: $('#select_dropdown').change
Here's my problem: I have a form in index.html, it will have a text
This javascript code run without problem in chrome and IE but have a problem

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.