Possibly a preferences issue? Dunno

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;

Possibly a preferences issue? Dunno

Postby jPaul » Wed Apr 20, 2022 1:55 pm

Hi Everybody,
The behaviour of my Rapid PHP 2022 has changed from one day to the next. I must have changed "something" but I have no idea what that might be.

here it is:

I have just two files, "form.htm" and "formhandler.php".

In the "form.htm" file, I'll have the statements:
<form method="post" action="formhandler.php">
<input type="text" name="firstname" size="30">
<input type="submit" value="Submit Information">
</form>

Then, in the "formhandler.php" file, I will have:
<?php
$firstname = $_POST['firstname'];
print "<p>Congratulations $firstname</p>";
?>
Normally, when I execute the <SUBMIT> from the "form.htm" file, The screen will clear and I'll see the message "Congratulations Paul".

However, when I execute the <SUBMIT> now, the screen will clear but display the text code written for "formhandler.php" file.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<?php
$firstname = $_POST['firstname'];
print "<p>Congratulations $firstname</p>";
?>
</body>
</html>


What have I scrambled in the Rapid PHP 2022??
Many Thanks,

Paul
jPaul
 
Posts: 9
Joined: Tue Apr 03, 2018 5:01 pm

Re: Possibly a preferences issue? Dunno

Postby Aivars » Fri May 27, 2022 3:48 pm

Click Gear icon -> Developer Tools, go to Sources tab. Where is formhandler.php loaded from? If it's not from http://localhost:89 then you have configured it to use some other webserver instead of built-in one. In that case make sure your webserver has correctly configured support for php scripts.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: Bing [Bot] and 32 guests

cron