Skip to content

Conversation

@vaaakoo
Copy link

@vaaakoo vaaakoo commented May 19, 2022

No description provided.

@vaaakoo vaaakoo closed this May 19, 2022
@vaaakoo vaaakoo reopened this May 19, 2022
@vaaakoo vaaakoo closed this May 23, 2022
@vaaakoo vaaakoo reopened this May 23, 2022
@vaaakoo vaaakoo marked this pull request as draft May 23, 2022 13:26
@vaaakoo vaaakoo marked this pull request as ready for review May 24, 2022 19:26
Copy link
Author

@vaaakoo vaaakoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no change

$imageFileType = pathinfo($new_file,PATHINFO_EXTENSION);
move_uploaded_file($_FILES["uploadfile"]["tmp_name"], $new_file);

echo '<img src="'.$new_file.'" />';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

სალამიი, კითხვა მაქვს, php-ით html ელემენტის გამოტანის მაგივრად, უკეთესი ხო არ იქნებოდა, პირიქით გაკეთება html-ის ელემენტში php variable-ის გამოტანა



$alpha = "/^[a-zA-z]+$/";
$fname = $_POST['fname'];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input-ების წამოღება დიდი ალბათობით if(isset($_POST['submit'])-ამდე ერორს მოგცემს

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

გამარჯობა,
ვცადე და ერორს არ მაძლევს, რამე ერორის კოდი დავამატე ჯობს?

Copy link

@HenryDarts HenryDarts May 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

იდეაში პოსტის შემოწმების გარეშე, წესით დასაბმითებამდე ყოველთვის ცარიელ მონაცემს მოგცემს, შეგიძლია თუ სურვილი გექნება ეს ნაწილიც if(isset($_POST['submit'])) ამის ქვეშ შეიტანო, ეგ მოგცემს რომ input ფილდიდან ველიუს მხოლოდ დასაბმითების მერე წამოიღებ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants