problem with HTML form

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
rbbenson
Posts: 2
Joined: Wed Apr 27, 2011 12:50 am

problem with HTML form

Post by rbbenson »

A problem with HTML form and configuration of Rapid PHP 2007.

if file named info.php contains 1 line of code <?php phpinfo(); ?>, either clicking preview tab or 'preview in' button in tool bar, PHP info is loaded. This suggest that PHP is found and functioning

Yet, when the function <form action="fill_Form.php" action="post"> is excuted from the HTML file, the file fill_Form.php does not load the file into the browser, but opens the file to the clipboard ???

The file fill_Form.HTML is -

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>The Form</title>
</head>

<body>

<!-- Script - theForm -->
<form action="fill_Form.php" action="post">
<p><input type="text" name="fill" /></p>
<input type="submit" name="submit" value="Submit it" />
</form>

</body>

</html>

The file fill_Form.php is -

<?php

$name = $_REQUEST['fill'];

echo "the stuff $name ";

?>

Like, just how complex is this? No vary.

Yet, when the file fill_Form.php is loaded into the Rapid PHP 2007 editor, either clicking the Previev tab or the Preview In button in the tool bar, the php code is excuted.

So, what is the diff?? Why can each file excute seperately and when 'the_Form.html' makes the call with the <form action="fill_Form.php" action="post">
line of code, the fill_Form.php file is not excuted catching the $_REQUEST['fill'] and giving the value to $name.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: problem with HTML form

Post by Karlis »

It can not be. It can not be that a random code is copied to Clipboard, clipboard is filled only when you use copy. So either there is a confusion or you have found a very unusual unintended behavior. Whether a preview area or a web browser, the pages loaded in web browser control should work the same.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply