D
D
Danil Stolbov2020-05-11 18:21:12
PHP
Danil Stolbov, 2020-05-11 18:21:12

How to solve the problem with the transition?

When switching from an html document to a php document, the whole code is shown, and not a specific line, how can this be solved?
Here is the php code:

<?php
  if (empty($_POST['name'])) {
    exit('Некорректное имя пользователя');
  }else{
    spliti('', $_POST['name']);
  }
   ?>

When you click on the submit button on the html page, it just shows the full php code, not a specific line

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-05-11
@danilst89

Enable PHP processing on the web server

E
Evgeny Zapunny, 2020-05-11
@evgzap

File extension must be php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question