• February 15, 2023
    <?php
    // Start the session
    session_start();
    
    // Check if the form has been submitted
    if ($_SERVER["REQUEST_METHOD"] == "POST") {
      // Retrieve the form data
      $income = $_POST["income"];
      $expenses = $_POST["expenses"];
      $savings_goal = $_POST["savings_goal"];
      
      // Store the form data in the session
      $_SESSION["income"] = $income;
      $_SESSION["expenses"] = $expenses;
      $_SESSION["savings_goal"] = $savings_goal;
      
      // Redirect to the results page
      header("Location: results.php");
      exit;
    }
    ?>
    
    <!DOCTYPE html>
    <html>
    <head>
      <title>Personalized Financial Planning Software</title>
    </head>
    <body>
      <h1>Personalized Financial Planning Software</h1>
      
      <p>Enter your income, expenses, and savings goal to receive a personalized financial plan:</p>
      
      <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
        <label for="income">Income:</label>
        <input type="text" name="income" id="income" required>
        
        <label for="expenses">Expenses:</label>
        <input type="text" name="expenses" id="expenses" required>
        
        <label for="savings_goal">Savings Goal:</label>
        <input type="text" name="savings_goal" id="savings_goal" required>
        
        <input type="submit" value="Generate Plan">
      </form>
    </body>
    </html>
    


เวอไนน์ไอคอร์ส

ประหยัดเวลากว่า 100 เท่า!






เวอไนน์เว็บไซต์⚡️
สร้างเว็บไซต์ ดูแลเว็บไซต์

Categories


Uncategorized