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.
How to retrieve forms?
Moderator: Project members
-
- 504 Command not implemented
- Posts: 8
- Joined: 2014-10-03 11:07
- First name: Christian
- Last name: Kruuse
Re: How to retrieve forms?
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?
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.
-
- 500 Command not understood
- Posts: 3
- Joined: 2014-10-21 12:41
- First name: ali
- Last name: reza
Re: How to retrieve forms?
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.
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.
Reason: Redacted vulnerable code.