Search Box - No Downloads

You need to post code that is causing problems. I/ we are not doing your work for you, so posting an example of what you want goes to your research not mine.

You need to think how you are storing the information about the programs in order to search for and then display them.

I’m not exactly what you want me to get…

Here’s the code:




<?php // gets elements by tagnames $app = $_POST['app']; $space = "
";

// following code will echo search results

echo ‘Form Results
’;
echo 'Application Searched: '.$_POST[‘app’].$space;

// finish PHP
?>

All I basically do, is upload the downloads to File Manager

So, you could only search by filename. How are you showing the files that you have?

After I’ve uploaded them to File Manager, here’s the code I put on http://appstash.x10.mx/Security.php:

<a href="Downloads/Security/RKill.exe"download>
<img src=“http://i62.tinypic.com/9a2y37.png”
<a href="Downloads/Security/RKill.exe"download>

RKill


RKill kills processes of malware which is running in your system and then removes the files/folders related to them. This program has been developed by Bleeping Computer

I would say that you need a database to store the information in and then pull the data from there to populate the area. Then, you could search for filenames, uses, and operating systems.

My line of thinking it to write a script that pulls the files out of a directory and shows it that way and I have used that on a few production sites. But, the information does not need to be queried.

Would you be able to point me in the right direction for that?

To do a database? or to read the contents of a directory?

I’m quite new to PHP and what you said in your previous reply about the script that pulls files confused me…

You need to help yourself as well. Are you new to programming or just PHP?

I provided a link to look at.

I’m new to all types of coding…

Sponsor our Newsletter | Privacy Policy | Terms of Service