fırtına086
Aktif Üye
- Mesajlar
- 131
arkadaşlar php'ye yeni başladım çalışmaya. xampp kullanıyorum apache onun içinde. kod editörü olarak dreamveawer cs3 kullanıyorum. oluşturduğum php belgeleriyle örneğin "echo "merhaba"; " yazınca çalışıyor, ekrana merhaba yazıyor. ama post metoduyla bi formdan girdiğim verileri başka bir formda göstermek istiyorum. ilk önce şu komutları
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="POST" action="postaction.php">
<p> </p>
<table width="373" height="168" border="1">
<tr>
<td width="206" height="32">adı:</td>
<td width="151"><label>
<input type="text" name="textfield" id="textfield" />
</label></td>
</tr>
<tr>
<td height="29">soyadı:</td>
<td><input type="text" name="textfield2" id="textfield2" /></td>
</tr>
<tr>
<td height="31">mesleği:</td>
<td><input type="text" name="textfield3" id="textfield3" /></td>
</tr>
<tr>
<td height="31">yaşı:</td>
<td><input type="text" name="textfield4" id="textfield4" /></td>
</tr>
<tr>
<td height="31"> </td>
<td><input type="submit" name="button" id="button" value="Gönder" /></td>
</tr>
</table>
<p> </p>
<p>
<label></label>
</p>
</form>
<?php
echo "merhaba";
?>
</body>
</html>
yazıp index.php diye kaydettim ve çalıştır dediğimde etiket ve textboxlar geliyor burada da sorun yok.
ama bu sayfadaki textboxlara girdiğim ad soyad meslek ve yaş bilgilerini girip "gönder" butonuna bastığımda
<?php
$a=$_POST["textfield"];
$b=$_POST["textfield2"];
$c=$_POST["textfield3"];
$d=$_POST["textfield4"];
echo $a;
echo "<BR>";
echo $b;
echo "<BR>";
echo $c;
echo "<BR>";
echo $d;
?>
komutlarıyla oluşturup kaydettiğim "postaction.php" isimli dosyanın açılıp yukarıdaki index.php'deki formdan girdiğim bilgileri göstermesini istiyorum. ama index.php'den bilgileri girip gönder butonuna bastığımda postaction.php belgesi internet explorer tarayıcısında boş (hiç bir yazı yok) olarak çıkıyor.
bir haftadır uğraşıyorum lütfen yarrrdımmm,nerde yanlışş yapıyorummmmmmmmmmm? işletim sistemim vista.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="POST" action="postaction.php">
<p> </p>
<table width="373" height="168" border="1">
<tr>
<td width="206" height="32">adı:</td>
<td width="151"><label>
<input type="text" name="textfield" id="textfield" />
</label></td>
</tr>
<tr>
<td height="29">soyadı:</td>
<td><input type="text" name="textfield2" id="textfield2" /></td>
</tr>
<tr>
<td height="31">mesleği:</td>
<td><input type="text" name="textfield3" id="textfield3" /></td>
</tr>
<tr>
<td height="31">yaşı:</td>
<td><input type="text" name="textfield4" id="textfield4" /></td>
</tr>
<tr>
<td height="31"> </td>
<td><input type="submit" name="button" id="button" value="Gönder" /></td>
</tr>
</table>
<p> </p>
<p>
<label></label>
</p>
</form>
<?php
echo "merhaba";
?>
</body>
</html>
yazıp index.php diye kaydettim ve çalıştır dediğimde etiket ve textboxlar geliyor burada da sorun yok.
ama bu sayfadaki textboxlara girdiğim ad soyad meslek ve yaş bilgilerini girip "gönder" butonuna bastığımda
<?php
$a=$_POST["textfield"];
$b=$_POST["textfield2"];
$c=$_POST["textfield3"];
$d=$_POST["textfield4"];
echo $a;
echo "<BR>";
echo $b;
echo "<BR>";
echo $c;
echo "<BR>";
echo $d;
?>
komutlarıyla oluşturup kaydettiğim "postaction.php" isimli dosyanın açılıp yukarıdaki index.php'deki formdan girdiğim bilgileri göstermesini istiyorum. ama index.php'den bilgileri girip gönder butonuna bastığımda postaction.php belgesi internet explorer tarayıcısında boş (hiç bir yazı yok) olarak çıkıyor.
bir haftadır uğraşıyorum lütfen yarrrdımmm,nerde yanlışş yapıyorummmmmmmmmmm? işletim sistemim vista.