Nieuw lid |
|
Hi,
Dit zal niet zware PHP zijn, maar wil het toch graag weten.
Ik heb de volgende code:
Route:
<br />
<textarea name="route" cols=70 rows=5 wrap=physical></textarea>
<br />
ADES:<input type="text" size="4" maxlength="4" name="arr_icao" />
Total EET:<input type="text" size="4" maxlength="4" name="flt_time" />
ALTN Aerodrome:<input type="text" size="4" maxlength="4" name="alt_icao" />
2ND ALTN Aerodrome:<input type="text" size="4" maxlength="4" name="alt2_icao" />
<br />
Other information:
<br />
<textarea name="other" cols=70 rows=5 wrap=physical></textarea>
<br />
<INPUT TYPE="submit" VALUE="Send" />
</form>
</body>
</html>
<?php
$ca = $_POST['callsign'];
$fr = $_POST['flt_rule'];
$tof = $_POST['flt_type'];
$num = $_POST['number'];
$ac = $_POST['ac_type'];
$waketurb = $_POST['wake_cat'];
$equip = $_POST['equip'];
$trans = $_POST['transponder'];
$adep = $_POST['dep_icao'];
$time= $_POST['dep_time'];
$speed = $_POST['cruise_speed'];
$level = $_POST['cruise_level'];
$route = $_POST['route'];
$ades = $_POST['arr_icao'];
$eet = $_POST['flt_time'];
$altn = $_POST['alt_icao'];
$altn2 = $_POST['alt2_icao'];
$info = $_POST['other'];
echo "-(FPL-$ca-$fr$tof-$num$ac/$waketurb-$equip/$trans-$adep$time-$speed$level $route -$ades$eet $altn $altn2 -$info";
?>
Boven route is nog een deel HTML met input types.
Ik wil die laatste echo "-fpl" weergeven als iemand om de submit/send button klikt.
Hoe moet ik dit doen?
Mvg,
Mark Otten
|