Jump to content

[SOLVED] Ajax & PHP (php based question though)


play_

Recommended Posts

I have a text field and a button.

 

When the user types a text in the text field and clicks the button, ajax gets the value of the text field, sends it to a php script as POST and the php script creates a folder with the value passed.

 

Now. say the php file is called make.folder.php

 

so when the user clicks the button, a value is passed to make.folder.php.

But what if someone types into their browser www.example.com/make.folder.php? How can i prevent this?

 

even though it's post and not get, i've been told there are tools for passing POST. so someone could run a loop and create bunch of folders.

 

thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.