Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6663713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:31:46+00:00 2026-05-26T02:31:46+00:00

I have a quotation form where the user fills out the boxes, clicks submit

  • 0

I have a quotation form where the user fills out the boxes, clicks submit and the isset function works to see if its set before returning a quote.

<?php
if (isset($_POST['submit'])) {
    $total = $_POST['ssize'] + $_POST['condition'] + $_POST['opticalDrive'];
    ?> Price is <?php echo $total;
}
?>

This quotation only appears after clicking the submit button.
If the user wishes to accept the quote i also want a form to appear with that quote. But i cant figure out how to include the HTML form in with that PHP so make it appear with it after the submit button.

This is an example of my form:

<form method="post">
    First Name: <input type="text" name="fname" />
    Surname: <input type="text" name="sname" />
    E-Mail Address: <input type="text" name="email" />
    House Number: <input type="text" name="HouseNo" />
    Street Name: <input type="text" name="Street" />
    Town/City: <input type="text" name="towncity" />
    Post Code: <input type="text" name="Postcode" />
</form>

So how can I combine them both to appear at the same time after the submit button?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:31:46+00:00Added an answer on May 26, 2026 at 2:31 am

    You just place your html within the IF clause. If I understood correctly your question..

        <?php  
        if (isset($_POST['submit']))
        {        
             $total = (int)$_POST['ssize'] + (int)$_POST['condition'] + (int)$_POST['opticalDrive'];
        ?>
    
        Price is : <?php echo $total;  ?>
    
        <form method="post" action="scriptforthisform.php">
        <fieldset>
        <legend></legend>
        First Name: <input type="text" name="fname" value=""/>
        Surname: <input type="text" name="sname" value="" />
        E-Mail Address: <input type="text" name="email" value=""/>
        House Number: <input type="text" name="HouseNo" value=""/>
        Street Name: <input type="text" name="Street" value=""/>
        Town/City: <input type="text" name="towncity" value=""/>
        Post Code: <input type="text" name="Postcode" value=""/>
        <input type="submit" value="send" name="submit_quote" />
        </fieldset>
        </form>
    
      <?php 
       } 
       ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say we have this form, and the possible part for a user to
I can't set a variable from a post array. I have a simple form
I have this naive regex "<([\s]|[^<])+?>" (excluding the quotation marks). It seems so straightforward
I have the following string: <div id=mydiv>This is a div with quotation marks</div> I
Have a n-tire web application and search often times out after 30 secs. How
I have a string that ends with a (quotation mark) that I want to
Let's say we have a simple F# quotation: type Pet = { Name :
Say you have a String literal with a lot of quotation marks inside it.
I have an F# quotation that I manipulate (I add object pools everywhere to
I have created a windows form application: A presentation library with several windows forms

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.