sasan kamali
sasan kamali

Reputation: 13

making html web page

I am making a web page with html. I made a choose button that the users can select a file and upload it. I want them to be able to upload a and if the file that they chose is wrong . Is it possible to do that with html syntax what else I should add more?

Thank you,

Upvotes: 0

Views: 80

Answers (2)

Akram Fares
Akram Fares

Reputation: 1683

You can use PHP to do that, make the code to upload a file and if the choice is wrong send a PHP header with you status code :

<?php header("HTTP/1.1 402 Payment Required"); ?>

Upvotes: 2

mnagel
mnagel

Reputation: 6854

you need server side code, e.g. in php you can use: http://php.net/manual/de/function.http-response-code.php

Upvotes: 1

Related Questions