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 6836707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:23:17+00:00 2026-05-26T23:23:17+00:00

I have a reservation form with input checks. If there is something filled in

  • 0

I have a reservation form with input checks. If there is something filled in wrong, i want it to refill the reservation form again with the same values which were submitted. The form i use for this is :

<p class="contentreserverentekst cutcorners">Ook bieden wij u de mogelijkheid om te kunnen reserveren via het internet. Hiervoor hoeft u alleen maar een aantal gegevens in te vullen met betrekking tot de reservering. De reservering is pas vast nadat wij een bevestiging hebben verstuurd per mail.</p>
                    <form class="contentreserveren cutcorners" action="reserveren.php" method="POST" >
                        <table>
                            <tr>
                                <td class="onlytext" id="naam">Voor- en achternaam:*</td>
                                <td><input type="text" name="naam" id="naambox" value="<?$naam?>" size="40"></input></td>
                            </tr>
                            <tr>
                                <td class="onlytext" id="personen">Aantal personen:*</td>
                                <td><input type="text" name="personen" id="personenbox" value="<?$personen?>" size="40"></input></td>
                            </tr>
                            <tr>
                                <td class="onlytext" id="datum">Datum:*</td>
                                <td><input type="text" name="datum" id="datumbox" value="<?$datum?>" class='datepicker' size="40"></input></td>
                            </tr>
                            <tr>
                                <td class="onlytext" id="tijd">Tijd:*</td>
                                <td><input type="text" name="tijd" id="tijdbox" value="<?$tijd?>" size="40"></input></td>
                            </tr>
                            <tr>
                                <td class="onlytext" id="telefoon">Telefoonnummer:*</td>
                                <td><input type="text" name="telefoon" id="telefoonbox" value="<?$telefoon?>" size="40"></input></td>
                            </tr>
                            <tr>
                                <td class="onlytext" id="email">E-Mail:*</td>
                                <td><input type="text" name="email" id="emailbox" value="<?$email?>" size="40"></input></td>
                            </tr>
                            <tr>
                                <td class="onlytext">Opmerkingen:</td>
                                <td><textarea cols="36" rows="7"  name="opmerking" value="<?$opmerking?>"></textarea></td>
                            </tr>
                            <tr>
                                <td colspan="2"><input type="submit" action="submit" value="Reserveer!" class="reservebutton"></input></td>
                            </tr>
                        </table>
                    </form>

After i click the button, the form sends me back to reserveren.php. In the beginning of the class i have :

<?php
$naam = $_POST["naam"];
$personen = $_POST["personen"];
$datum = $_POST["datum"];
$tijd = $_POST["tijd"];
$telefoon = $_POST["telefoon"];
$email = $_POST["email"];
$opmerking = $_POST["opmerking"];

echo $naam;
echo $personen;
echo $datum;
echo $tijd;
echo $telefoon;
echo $email;
echo $opmerking;
?>

The page does echo all the right value’s which were filled in the form, but the form inputs are empty.(I already put the value of the input right).

Could someone help me out?

Thanks, Sinan

  • 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-26T23:23:18+00:00Added an answer on May 26, 2026 at 11:23 pm

    You do not echo them, in short tags that is: <?=$variables?>, or go for the full <?php echo $variable; ?>.


    As Dimitar Dimitrov correctly notes – I also discourage short tags. They require a setting enabled on your server and might cause problems with software upgrades or migrations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a form for making a reservation for borrowed items. A
I have the following form which allows a user to select dates/rooms for a
I'm working with a domain model, in which I have a Reservation class: class
I have a Restful web service. Reservation room can change. Which URI is better
In my form I want to have the time in 24h mode. In datetime
so..I have a form with method='post' set. <form action='/${languageLinkCode}html/reservation' method='POST' name='homeform'> //fields <button>Submit</button> </form>
Ok I have a reservation object which stores all details of event for which
I have following urls. reservation.abchotel.com booking.abchotels.org abc1.abc.dev I want to get sub domain from
So I have a method in a reservation model called add_equip. This method does
Can anyone help? I have a created a relationship between my Reservation(prim key) and

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.