Web Development
Member Avatar

Hello,

After searching over the internet how to secure a web application(forms) in PHP,
in most of the cases were just suggestions not a short and real example.

In some …

Topic by developer707

@jkon, regarding Databases queries I think that I am using the recommended way, here is an example:

try {
    $query          = 'INSERT INTO
                        requests (
                            `request_id`, `email`, `ip`
                        )
                        VALUES …
Web Development
Member Avatar

Hello,

After searching over the internet how to secure a web application(forms) in PHP,
in most of the cases were just suggestions not a short and real example.

In some …

Topic by developer707

Sorry regarding my terminology, maybe it is misleading.

Till now in most of the cases I am dealing with this parameters types:

  1. Integers(Numbers, IDs), that I secure them with …
Web Development
Member Avatar

Hello,

In my project I have a form with many inputs and one object is using DropzoneJS to attach files.
Since I store all the inputs when I post the …

Topic by developer707

Hello,

With just this information I can't say exactly where may be your issue.
Can I ask you if dropzone JS has be called on your page?

Web Development
Member Avatar

Hello,

After searching over the internet how to secure a web application(forms) in PHP,
in most of the cases were just suggestions not a short and real example.

In some …

Web Development
Member Avatar

Hello,

After searching over the internet how to secure a web application(forms) in PHP,
in most of the cases were just suggestions not a short and real example.

In some …

Web Development
Member Avatar

Hello,

After searching over the internet how to secure a web application(forms) in PHP,
in most of the cases were just suggestions not a short and real example.

In some …

Web Development
Member Avatar

Hello to all,
I am trying to execute a mysql query for selecting * rows from the table where user name = [one of the usernames stored in an array]. …

Topic by litlemaster

Hello,

What about the security of this method, is it considered SAFE?!
If not how it can be secured.

Thank you!

php
Web Development
Member Avatar

Hello to all,
I am trying to execute a mysql query for selecting * rows from the table where user name = [one of the usernames stored in an array]. …

php
Software Development
Member Avatar

I am trying to print my data in columns. For some reason every column but the last one lines up. Is there a way to fix this?

while ((row = …
Topic by COKEDUDE

Also you should consider to start using mysqli*

c
Software Development
Member Avatar

I am trying to print my data in columns. For some reason every column but the last one lines up. Is there a way to fix this?

while ((row = …
c
Web Development
Member Avatar

Hello,

In my project I have a form with many inputs and one object is using DropzoneJS to attach files.
Since I store all the inputs when I post the …

Topic by developer707

I managed to change the code as suggest, for the moment it seems to be working.
All the uploaded images are storen in a hidden input divided by a ,

Web Development
Member Avatar

Hello,

In my project I have a form with many inputs and one object is using DropzoneJS to attach files.
Since I store all the inputs when I post the …

Web Development
Member Avatar

Hello,

In my project I have a form with many inputs and one object is using DropzoneJS to attach files.
Since I store all the inputs when I post the …

Web Development
Member Avatar

Hello,

In my project I have a form with many inputs and one object is using DropzoneJS to attach files.
Since I store all the inputs when I post the …

Web Development
Member Avatar

Hello,

I am trying to manipulate a HTML content stored in a php variable.
The logic is as follows: The variable should be checked if it contains an <img … …

Web Development
Member Avatar

Hello,

I am trying to manipulate a HTML content stored in a php variable.
The logic is as follows: The variable should be checked if it contains an <img … …

Topic by developer707

Someone else helped me to fond a solution.
Here is all the logic.

$source = '
  <img src="1.jpg"/>' . "\n" . '
  <img src="2.jpg" alt="2" />' . "\n" . ' …
Web Development
Member Avatar

Hello,

I am trying to manipulate a HTML content stored in a php variable.
The logic is as follows: The variable should be checked if it contains an <img … …

Topic by developer707

Thank you @AndrisP
This code works well, but it may needs some improvements.

In some cases the editor of the website puts some other parameters to the image (width, height) …

Web Development
Member Avatar

Hello,

I am trying to manipulate a HTML content stored in a php variable.
The logic is as follows: The variable should be checked if it contains an <img … …

Web Development
Member Avatar

Hello,

I am trying to manipulate a HTML content stored in a php variable.
The logic is as follows: The variable should be checked if it contains an <img … …

Web Development
Member Avatar

Hello,

I am trying to manipulate a HTML content stored in a php variable.
The logic is as follows: The variable should be checked if it contains an <img … …

Web Development
Member Avatar

Hello,

Recently I am starting to code my scripts in PDO method to manage the information in a mysql database.
In this case I am having an issue how to …

Topic by developer707

Sorry for my insecurities, but as I am not very good on this topics I got confused.
How can I deal with the query when I have many parameters like …

Web Development
Member Avatar

Hello,

Recently I am starting to code my scripts in PDO method to manage the information in a mysql database.
In this case I am having an issue how to …

Topic by developer707

Thank you for the fast reply.
This was the way I wanted to avoid :(
I have many other parameters like $gjendja_id, so the only solution is to have many …

Web Development
Member Avatar

Hello,

Recently I am starting to code my scripts in PDO method to manage the information in a mysql database.
In this case I am having an issue how to …

Web Development
Member Avatar

Hello,

Recently I am starting to code my scripts in PDO method to manage the information in a mysql database.
In this case I am having an issue how to …

Web Development
Member Avatar

Hello,

Recently I am starting to code my scripts in PDO method to manage the information in a mysql database.
In this case I am having an issue how to …

Web Development
Member Avatar

Hello,
Recently I am dealing with bad performance in an php application that I have build,
googling this issue I found out that using services like memcached you can archive …

Topic by developer707

Dani thank you for your reply.
I understand the theory how it works, but I wanted a detailed example.

There are a lot of information in google and a lot …

Web Development
Member Avatar

Hello,
Recently I am dealing with bad performance in an php application that I have build,
googling this issue I found out that using services like memcached you can archive …

Web Development
Member Avatar

Hello,
Recently I am dealing with bad performance in an php application that I have build,
googling this issue I found out that using services like memcached you can archive …

Web Development
Member Avatar

Hello,
Recently I am dealing with bad performance in an php application that I have build,
googling this issue I found out that using services like memcached you can archive …

Web Development
Member Avatar

Hello,
Recently I am using phpexcel and afer many tries I wasn't able to find out how to
make a document with a image in its header.
Here is a …