Toon posts:

[PHP]Varabele ontvangen

Pagina: 1
Acties:
  • 31 views sinds 30-01-2008

Verwijderd

Topicstarter
Stel je heb dit 'form' gemaakt als deze:
code:
1
2
3
4
5
6
7
8
9
10
<FORM ACTION="Wardata_Results.php" METHOD="POST">
<tr> 
<td height="30" width="164" valign="top" style="border-style: none; border-width: medium"><font color="#000000">Avaible</font></td>
<td valign="top" width="161">Dodger</td>
<td valign="top" style="border-style: none; border-width: medium"> Yes 
  <input type="radio" name="Avaible" value="Dodger">
  No 
  <input type="radio" name="Not Avaible" value="Dodger">
</td>
    </tr>

De variabele Dodger wordt dus doorgestuurd naar de file Wardata_Results.php. De source is:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=ISO-8859-1"><style><!--
body,td,a,p,.h{font-family:arial,sans-serif;} .h{font-size: 20px;} .h{color:} .q{text-decoration:none; color:#000080;}
//--></style>
<title>Wardata</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body border="1" background="images/background_white_blur.jpg" text="#000000" style="border-collapse: collapse; border-left-width: 0; border-right-width: 0; border-top-width: 0" bordercolor="#111111">

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="325" id="AutoNumber1" align="center">
  <td height="30" width="164" valign="top" style="border-style: none; border-width: medium"><font color="#000000">Dodger</font></td>
    <td valign="top" width="161">**<?php echo($Grumpz); ?></td>
  </tr>
</table>

Nu is mijn vraagt, wat is er fout aan de code:
<td valign="top" width="161">**<?php echo($Grumpz); ?></td>
of te wel, hoe kan ik de variabele ontvangen?
Kan iemand de code geven die moet staan op de plaats waar de variabele ontvangen moet worden?

  • Dennis
  • Registratie: Februari 2001
  • Laatst online: 23:30
$_POST['Grumpz']


zzzzzzzzzzzzzzzzzz :Z

  • Grum
  • Registratie: Juni 2001
  • Niet online
Dit zijn wel erge basics.

  • chem
  • Registratie: Oktober 2000
  • Laatst online: 27-08 13:53

chem

Reist de wereld rond

ga eens de manual lezen, dit is echt te simpel voor woorden

Klaar voor een nieuwe uitdaging.


Dit topic is gesloten.