FORM ga naar andere pagina na sturen.

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Senior, Medior and Junior SAP HANA Developer

Vacature details Vakgebied: Software/IT Opleiding: Medior Werklocatie: Veldhoven Vacature ID: 12696 Introductie Our client is the world's leading provider of lithography systems for the semiconductor industry, manufacturing complex machines that are critical to the production of integrated circuits or chips. Our purpose is “unlocking the potential of people and society by pushing technology to new limits”. We do this guided by the principles “Challenge”, “Collaborate” and “Care”. Wat verwachten we van jou? SAP Certified Application Associate - SAP HANA Cloud Modeling (training and/or certification) Bachelor degree or higher Excellent understanding of SAP HANA (2.0 / Cloud), Data Modelling and writing

Bekijk vacature »

Elmar

Elmar

04/08/2009 11:57:00
Quote Anchor link
Hi All,

Ik ben bezig met een bestel form. Alles werkt gewoon goed maar nu wil ik dat die na het sturen naar een bedank pagina gaat. Ik kom er niet uit :(

En weten jullie ook als ik iemand vergeet iets in te vullen komt de tekst onderaan te staan kan dat ook boven aan??

hier de code:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?php

$aProducten
= array('Hotel Letterhead N1A59','Hotel continuation N2A62','Hotel correspondence card N4A67', 'Hotel correspondence with detachable business card N5A69', 'Enveloppe without window 325 x 229 mm N6A71', 'Enveloppe with window 220 x 110 mm N7A71', 'Enveloppe with window 229 x 162 mm N8A71', 'Invoice N9A75', 'Magnetic (key) card holder N10A84', 'Currency exchange receipt N11A86', 'Message note N12A86', 'Safe deposit record card N13A87', 'Luggage label N14A88', 'Room directory N15A92', 'Stationary folder N16A93', 'Customer/client letterhead N17A94', 'Telephone Notepad N18A95', 'Mini-bar price list N19A96', 'Do not disturb sign N20A97', 'Breakfast order N21A98', 'Environment card/bathroom counter card N22A99', 'Guest comment N23A100', 'Laundry form/order in 3-voud N24A101', 'Telephone rate card N26A104 ', 'Fire safetey information N27A105', 'Banquet menu N31A110', '"reserved" tentcard N32A111', 'Restaurant invoice sets in 2-voud N34A113', 'Presentation tentcard N35A121', 'Blocknote/Notepad N36A122');
$aBesteld = array();

$wanneer_dag = $_POST['wanneer_dag'];
$wanneer_maand = $_POST['wanneer_maand'];
$opmerking = $_POST['opmerkingen'];
$mail = $_POST['adres'];
$naam = $_POST['naam'];
$sex = $_POST['sex'];
 

echo '<form method="post" action="'.$_SERVER['REQUEST_URI'].'">';
echo '<table border="0" class="bestel" cellspacing="0" width="470px">';
foreach($aProducten as $iKey => $sValue) {
  echo '<tr><td class="randje"><input size="20" type="text" name="aantal_'.$iKey.'" id="aantal" class="textInput" /> <font size="1" color="#e2007a">ex.</font></td><td class="randje">'.$sValue.'</td></tr>';
}

echo '</table><p><div id="lijn"></div></p><p><table class="bestel" border="0">';

echo '<tr><td align="right">Naam: <input type="text" name="naam" id="naamblok" class="textInput" /></td>';
echo '<td align="right"><input type="radio" name="sex" value="Dhr. " />Dhr. <input type="radio" name="sex" value="Mvr. " />Mvr.</td></tr>';
echo '<tr><td align="right">Mail: <input type="text" name="adres" id="mail" class="textInput" /></td></tr>';
echo '<tr><td align="right">Dag: <select name="wanneer_dag" id="wanneer" />

<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>

</select> Maand: <select name="wanneer_maand" id="wanneer" />

<option>januari</option>
<option>februari</option>
<option>maart</option>
<option>april</option>
<option>mei</option>
<option>juni</option>
<option>juli</option>
<option>augustus</option>
<option>september</option>
<option>oktober</option>
<option>november</option>
<option>december</option>

</select><td>&nbsp;Gewenste leverdatum</td><td>'
;



echo '<tr><p><td>Opmerkingen:</td></tr>';
echo '<tr><td><textarea name="opmerkingen" cols="40" rows="7"></textarea></td></p></tr>';
echo '<tr><td height="20px"><div id="lijn"></div><tr></td><td colspan="2"><input type="submit" value="Bestel" /> <input type="reset" value="Opnieuw" /></td></tr>';
echo '</table></p></form>';




if($_SERVER['REQUEST_METHOD'] == "POST") {
  for($i=0;$i<=count($aProducten);$i++) {
    if(isset($_POST['aantal_'.$i]) && is_numeric($_POST['aantal_'.$i])) {
      $aBesteld[] = array($i, $_POST['aantal_'.$i]);
    }
  }


  

if (empty($_POST['wanneer_dag']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen aanleverdag ingevuld.</font><br />';
}


if (empty($_POST['wanneer_maand']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen aanlevermaand ingevuld.</font><br />';
}


if (empty($_POST['naam']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen naam ingevuld.</font><br />';
}


if (empty($_POST['adres']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen mail ingevuld.</font><br />';
}




else{

  $aan = "[email protected]";
  $onderwerp = "Bestelling Novotel Amsterdam Airport";
 

  $bericht = "Beste Stephan,\n\n Hier onder staat de bestelling van Amsterdam Airport.\n\n";

    
     foreach($aBesteld as $aProduct) {
    list($iProduct, $iAantal) = $aProduct;
    $bericht .= "• ".$iAantal." ex - ".$aProducten[$iProduct]." \n\n";
    }

    $bericht .= "Aanleverdatum: ".$wanneer_dag." ".$wanneer_maand."\n\n Opmerking:\n ".$opmerking." \n\n Met vriendelijke groet,\n ".$sex." ".$naam."";


 $aan2 = "".$mail."";
  $onderwer2p = "Uw Bestelling";
 

  $bericht2 = "Beste ".$sex." ".$naam.",\n\n Hier onder staat uw bestelling.\n\n";

    
     foreach($aBesteld as $aProduct) {
    list($iProduct, $iAantal) = $aProduct;
    $bericht2 .= "• ".$iAantal." ex - ".$aProducten[$iProduct]." \n\n";
    }

    $bericht2 .= "Aanleverdatum: ".$wanneer_dag." ".$wanneer_maand."\n\n Opmerking:\n ".$opmerking." \n\n Met vriendelijke groet,\n het Tenty team";


    mail($aan, $onderwerp, $bericht);
    mail($aan2, $onderwerp, $bericht2);
    
  
}
}




?>


Hier de site: http://www.tentyproductions.nl/novotel/adam_airp/test.php

Alvast bedankt! ;) :D
Gewijzigd op 01/01/1970 01:00:00 door Elmar
 
PHP hulp

PHP hulp

16/05/2024 12:53:05
 
Zero XT

Zero XT

04/08/2009 12:34:00
Quote Anchor link
Je kan je bedankpagina includen op moment dat alle gegevens correct zijn ingevuld.

dus:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
<?php
require_once('bedankt.php');
?>


of je kan een header refresh geven:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
<?php
header('Location: bedankt.php');
?>


Waar je even ob_start(); helemaal bovenaan je pagina moet zetten en ob_end_flush(); helemaal onderaan.
 
Jan Koehoorn

Jan Koehoorn

04/08/2009 13:28:00
Quote Anchor link
HellRazer schreef op 04.08.2009 12:34:
Waar je even ob_start(); helemaal bovenaan je pagina moet zetten en ob_end_flush(); helemaal onderaan.

Je kunt beter netjes leren programmeren en eerst alle logica afhandelen. Pas helemaal op het eind stuur je HTML richting browser. Heb je ob niet nodig en je script worden nog duidelijker ook.
 
Elmar

Elmar

04/08/2009 13:47:00
Quote Anchor link
Ik heb die require_once('bedankt.php'); geprobeert maar werkte niet :( of ik doe iets fouts :(

Ik heb hem nu hier neergezet.

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php

if($_SERVER['REQUEST_METHOD'] == "POST") {
  for($i=0;$i<=count($aProducten);$i++) {
    if(isset($_POST['aantal_'.$i]) && is_numeric($_POST['aantal_'.$i])) {
      $aBesteld[] = array($i, $_POST['aantal_'.$i]);
    }
  }


  

if (empty($_POST['wanneer_dag']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen aanleverdag ingevuld.</font><br />';
}


if (empty($_POST['wanneer_maand']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen aanlevermaand ingevuld.</font><br />';
}


if (empty($_POST['naam']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen naam ingevuld.</font><br />';
}


if (empty($_POST['adres']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen mail ingevuld.</font><br />';
}




else{

    
  $aan = "[email protected]";
  $onderwerp = "Bestelling Novotel Amsterdam Airport";
 

  $bericht = "Beste Stephan,\n\n Hier onder staat de bestelling van Amsterdam Airport.\n\n";

    
     foreach($aBesteld as $aProduct) {
    list($iProduct, $iAantal) = $aProduct;
    $bericht .= "• ".$iAantal." ex - ".$aProducten[$iProduct]." \n\n";
    }

    $bericht .= "Aanleverdatum: ".$wanneer_dag." ".$wanneer_maand."\n\n Opmerking:\n ".$opmerking." \n\n Met vriendelijke groet,\n ".$sex." ".$naam."";


 $aan2 = "".$mail."";
  $onderwer2p = "Uw Bestelling";
 

  $bericht2 = "Beste ".$sex." ".$naam.",\n\n Hier onder staat uw bestelling.\n\n";

    
     foreach($aBesteld as $aProduct) {
    list($iProduct, $iAantal) = $aProduct;
    $bericht2 .= "• ".$iAantal." ex - ".$aProducten[$iProduct]." \n\n";
    }

    $bericht2 .= "Aanleverdatum: ".$wanneer_dag." ".$wanneer_maand."\n\n Opmerking:\n ".$opmerking." \n\n Met vriendelijke groet,\n het Tenty team";


    mail($aan, $onderwerp, $bericht);
    mail($aan2, $onderwerp, $bericht2);
    require_once("bedankt.php");
    
    
  
}
}




?>
 
Elmar

Elmar

04/08/2009 15:24:00
Quote Anchor link
Ik heb die require_once('bedankt.php'); geprobeert maar werkte niet :( of ik doe iets fouts :(

Ik heb hem nu hier neergezet.

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php

if($_SERVER['REQUEST_METHOD'] == "POST") {
  for($i=0;$i<=count($aProducten);$i++) {
    if(isset($_POST['aantal_'.$i]) && is_numeric($_POST['aantal_'.$i])) {
      $aBesteld[] = array($i, $_POST['aantal_'.$i]);
    }
  }


  

if (empty($_POST['wanneer_dag']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen aanleverdag ingevuld.</font><br />';
}


if (empty($_POST['wanneer_maand']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen aanlevermaand ingevuld.</font><br />';
}


if (empty($_POST['naam']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen naam ingevuld.</font><br />';
}


if (empty($_POST['adres']) || '')  {
   echo '<font color="#e2007a" size="3">U heeft geen mail ingevuld.</font><br />';
}




else{

    
  $aan = "[email protected]";
  $onderwerp = "Bestelling Novotel Amsterdam Airport";
 

  $bericht = "Beste Stephan,\n\n Hier onder staat de bestelling van Amsterdam Airport.\n\n";

    
     foreach($aBesteld as $aProduct) {
    list($iProduct, $iAantal) = $aProduct;
    $bericht .= "• ".$iAantal." ex - ".$aProducten[$iProduct]." \n\n";
    }

    $bericht .= "Aanleverdatum: ".$wanneer_dag." ".$wanneer_maand."\n\n Opmerking:\n ".$opmerking." \n\n Met vriendelijke groet,\n ".$sex." ".$naam."";


 $aan2 = "".$mail."";
  $onderwer2p = "Uw Bestelling";
 

  $bericht2 = "Beste ".$sex." ".$naam.",\n\n Hier onder staat uw bestelling.\n\n";

    
     foreach($aBesteld as $aProduct) {
    list($iProduct, $iAantal) = $aProduct;
    $bericht2 .= "• ".$iAantal." ex - ".$aProducten[$iProduct]." \n\n";
    }

    $bericht2 .= "Aanleverdatum: ".$wanneer_dag." ".$wanneer_maand."\n\n Opmerking:\n ".$opmerking." \n\n Met vriendelijke groet,\n het Tenty team";


    mail($aan, $onderwerp, $bericht);
    mail($aan2, $onderwerp, $bericht2);
    require_once("bedankt.php");
    
    
  
}
}




?>


Gelieve Niet Bumpen::
Twee of meer keer achter elkaar in een topic posten heet bumpen. Bumpen is pas na 24 uur toegestaan en kan een reden zijn voor de admins en moderators om een topic te sluiten. Gebruik indien nodig de Afbeelding knop om je tekst aan te passen.

SanThe.
Gewijzigd op 01/01/1970 01:00:00 door Elmar
 
Filip Smets

Filip Smets

04/08/2009 16:06:00
Quote Anchor link
Santhe doe je dat automatisch ofzo?
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.