Page Refresh na Form Submit

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 »

Pagina: « vorige 1 2

- SanThe -

- SanThe -

06/11/2005 18:41:00
Quote Anchor link
@Jan: Het zou zo maar kunnen werken denk ik. Is misschien ook wel wat tegen spambots.
 
PHP hulp

PHP hulp

19/04/2024 23:21:29
 
Han eev

Han eev

06/11/2005 18:44:00
Quote Anchor link
Tuurlijk werkt het ^^.
Dat idee vab jelmer ga ik ook ff testen.
 
Jan Koehoorn

Jan Koehoorn

06/11/2005 18:46:00
Quote Anchor link
Ik ga ook ff aan de gang!
 
Martijn K

Martijn K

22/11/2014 11:52:04
Quote Anchor link
Ik krijg wel het nummer er voor en het nummer daarvoor maar niet de melding :deze vraag is reeds beantwoord. Bij een page refresh blijven de nummers wel staan....
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
<?php

//dbcon

session_start();

$_SESSION['once'] = $_POST['eens'];

echo $_SESSION['once'];

$uniek = $_SESSION['once'];
echo "Dit is uniek 1:" . $uniek;
$uniek2 = $_POST['uniek'];
echo "Dit is uniek 2:" . $uniek2;
if($uniek==$uniek2){
echo "Deze vraag is reeds beantwoord";
}


$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'mysql';
$dbname = 'md342209db301970';
$dbCon=mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
// Check connection
if (mysqli_connect_errno()) {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$ipo= "ipadres";
$iptest =$_SERVER['REMOTE_ADDR'];
$sessi= 2;

if(isset($_POST['submit'])){
$vraag = $_POST['vraag'];
$vragenInvoer="INSERT INTO test (ID, sessie, antwoord,ip)
VALUES (NULL,'$sessi', '$vraag', '$ipo')"
;
if (!mysqli_query($dbCon,$vragenInvoer)) {
  die('Error: ' . mysqli_error($dbCon));
 mysqli_close($dbCon);
 }

}


?>

<form method='post' action=''>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
<?php
$eens
= rand(1000,9999);
echo $eens . "<br/>";
echo "<input type='hidden' name='eens' value='" . $eens . "'>";
echo "<input type='hidden' name='uniek' value='" . $uniek . "'>";
?>

<input type='radio' name='vraag' value='1'>1<br/>
<input type='radio' name='vraag' value='2'>2<br/>
<input type='radio' name='vraag' value='3'>3<br/>
<input type='submit' class='volgende' name='submit' value='antwoord'>
</form>
Gewijzigd op 22/11/2014 12:17:59 door Martijn K
 
- SanThe -

- SanThe -

22/11/2014 13:44:55
Quote Anchor link
Topic is 9 jaar oud.
 

Pagina: « vorige 1 2



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.