How to retrieve forms?

Post all HTML related questions here. No support.

Moderator: Project members

Post Reply
Message
Author
Agniswar
500 Command not understood
Posts: 5
Joined: 2014-04-22 14:19
First name: Agniswar
Last name: Bhattacharya

How to retrieve forms?

#1 Post by Agniswar » 2014-05-14 14:32

Hi,
I have FileZilla client installed. Recently, I have included an admission form in my website. I want to retrieve the details submitted in the form. what URL mention in the action element of my coding? Any help appreciated. I am using XAMPP control panel which includes Apache, PHP and MySQL.

chrpust
504 Command not implemented
Posts: 8
Joined: 2014-10-03 11:07
First name: Christian
Last name: Kruuse

Re: How to retrieve forms?

#2 Post by chrpust » 2014-10-07 14:30

Hey Agniswar

Now you are using PHP you can use:
action="<?php echo $_SERVER['PHP_SELF']; ?>"
Or
action="TheNameOfTheFile.php"
Or you can post it to another php-file
action="AnotherFile.php"

You can also use the get method, which will show you the data in the URL so you can see if something is posted in your form.

Did it help you?
No advertisement in signatures allowed.

alirezador
500 Command not understood
Posts: 3
Joined: 2014-10-21 12:41
First name: ali
Last name: reza

Re: How to retrieve forms?

#3 Post by alirezador » 2014-10-21 13:03

hi
Dear Friend
Your question is not obvious.
for send and receive data in web You need to client side and server side coding.
For example, stor the following code in a PHP file named 'myphpfile.php' and run it.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
</head>

<body>
<?php
if(isset($_REQUEST['MyName']))
{
<redacted vulnerable code, you forgot to escape HTML entities>
}
?>
<form action="myphpfile.php" method="post">
name : <input name="MyName" type="text" /><br />
last name : <input name="MyLastName" type="text" /><br />
<input type="submit" />

</form>
</body>
</html>
Last edited by botg on 2014-10-22 08:27, edited 1 time in total.
Reason: Redacted vulnerable code.

Post Reply