Jump to content

[SOLVED] $_post, $_get, and $_request don't work


bfis108137

Recommended Posts

For some reason I can't get my $_post, $_get, and $_request commands to work.  I even have gone a far as to make it $_get, and I could see the data in the address line but I couldn't even echo it.  Here is that code.  Ideally I would use it in the post method but to keep things more open it is now as get.  As a side note it is in Hebrew although I typed the data in English to keep that out of the equation.  The data shows up fine in the address bar in English.  I am running the latest WAMP server.  I am a newbie.  I am sure it's simple.

 

This is  the form which sends all the data to sent.php

<html dir="rtl">

<head>
<meta http-equiv="Content-Language" content="he">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ייעוץ לגיל הזהב-ביטוח לאומי,עובדים זרים-צור קשר</title>
<meta name="keywords" content="ביטוח לאומי,המוסד לביטוח לאומי,עובדים זרים,סיעוד,גיל הזהב">
<meta name="description" content="צור קשר">
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
// -->
</script>
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="#C0C0C0" onLoad="FP_preloadImgs(/*url*/'button2A.gif')">

<table cellpadding="0" cellspacing="0" id="table3" width="1005" height="832" style="padding-left: 0; padding-right: 0; padding-top: 0">
<!-- MSTableType="layout" -->

<tr>
	<td valign="top" bgcolor="#C0C0C0" rowspan="14"> </td>
	<td valign="top" colspan="20">
<img border="0" src="images/MPj04050840000[1].jpg" width="911" height="16"></td>
	<td valign="top" bgcolor="#C0C0C0" rowspan="15">
	<h1> </h1>
	</td>
	<td height="16"></td>
</tr>

<tr>
	<td valign="top" colspan="7" bgcolor="#000066" align="center">
	<h1 align="center"> </h1>
	</td>
	<td valign="top" colspan="9" bgcolor="#000066" align="center">
	<h1><b><font size="6" color="#FFFFFF">
	<span style="background-color: #000066">ייעוץ לגיל הזהב - ביטוח לאומי, 
	עובדים זרים</span></font></b></h1>
	</td>

	<td valign="top" colspan="4" bgcolor="#000066"> 
	</td>
	<td height="56"></td>
</tr>
<tr>
	<td valign="top" colspan="7" bgcolor="#F0F0F0" rowspan="2">
	<h1 align="center"> </h1>
	</td>
	<td valign="top" colspan="4" bgcolor="#F0F0F0" rowspan="2"> 

	</td>
	<td valign="top" bgcolor="#F0F0F0" rowspan="2" colspan="3">
	<h1><b><font size="6" color="#000080">מימוש זכויות בסיעוד</font></b></h1>
	</td>
	<td valign="top" colspan="6" bgcolor="#F0F0F0">
	<p align="center"><font size="4" color="#000066"><b>ייעוץ טלפוני ראשוני 
	חינם</b></font></td>
	<td height="17"></td>
</tr>

<tr>
	<td valign="top" colspan="6" bgcolor="#F0F0F0">
	<p align="center"><b><font size="5" color="#000066">050-87677</font></b><font size="5" color="#000066"><b>99</b></font></td>
	<td height="35"></td>
</tr>
<tr>
	<td valign="top" colspan="20">
	<img border="0" src="images/MPj04050840000[1].jpg" width="911" height="36"></td>

	<td height="36"></td>
</tr>
<tr>
	<td valign="top" bgcolor="#000066" colspan="5">
	<p align="center"><font face="Arial" color="#FFFFFF"><b>
	<a style="text-decoration: none; color: #FFFFFF" href="index.htm">דף הבית</a></b></font></td>
	<td valign="top" bgcolor="#000066" colspan="3">
	<p align="center"><a href="new_page_1.htm"><b>

	<font face="Arial" color="#FFFFFF"><span style="text-decoration: none">
	כרטיס ביקור</span></font></b></a></td>
	<td valign="top" bgcolor="#000066" colspan="2">
	<p align="center"><b><font face="Arial" color="#FFFFFF">
	<a style="text-decoration: none; color: #FFFFFF" href="btl.htm">ביטוח לאומי</a></font></b></td>
	<td valign="top" bgcolor="#000066" colspan="2">
	<p align="center"><b><font face="Arial" color="#FFFFFF">
	<a style="text-decoration: none; color: #FFFFFF" href="עובדים%20זרים.htm">עובדים זרים</a></font></b></td>

	<td valign="top" bgcolor="#000066">
	<p align="center"><font face="Arial" color="#FFFFFF"><b>
	<a style="color: #FFFFFF; text-decoration: none" href="new_page_4.htm">שאלות נפוצות</a></b></font></td>
	<td valign="top" bgcolor="#000066" colspan="2">
	<p align="center"><font face="Arial" color="#FFFFFF"><b>
	<a style="text-decoration: none; color: #FFFFFF" href="new_page_5.htm">מכתבי תודה</a></b></font></td>
	<td valign="top" bgcolor="#000066" colspan="2">
	<p align="center"><b><font color="#FFFFFF" face="Arial">

	<a style="text-decoration: none; color: #FFFFFF" href="new_page_6.htm">כתבות</a></font></b></td>
	<td valign="top" bgcolor="#000066" colspan="3">
	<p align="center"><b><font face="Arial" color="#FFFFFF">
	<a style="text-decoration: none; color: #FFFFFF" href="new_page_7.htm">קישורים</a></font></b></td>
	<td height="26"></td>
	</tr>
<tr>
	<td valign="top" bgcolor="#000066" colspan="5"> </td>

	<td></td>
	<td valign="top" bgcolor="#FFFFFF" colspan="11" rowspan="6">


<b><font face="Arial" color="#FF0000" size="4"> צור קשר:</font></b>
<FORM NAME="צור קשר" METHOD="get" ACTION="sent.php" SUBJECT="צור קשר" ENCTYPE="text/plain">
<BLOCKQUOTE>
<TABLE id="table5">
<TR>
<TD ALIGN="right">
<EM>שם פרטי</EM></TD>
<TD>
<INPUT NAME="FN" TYPE="text" SIZE=25>
</TD>

</TR>
<TR>
<TD ALIGN="right">
<EM>שם משפחה</EM></TD>
<TD>
<INPUT NAME="Contact_Last_Name" SIZE=25>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<EM>טלפון בבית</EM></TD>
<TD>
<INPUT NAME="Contact_Home_Phone" SIZE=25 MAXLENGTH=25>
</TD>
</TR>

<TR>
<TD ALIGN="right">
<em>טלפון סלולרי</em></TD>
<TD>
<INPUT NAME="Contact_Cellular_Phone" SIZE=25 MAXLENGTH=25>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<EM>דואר אלקטרוני</EM></TD>
<TD>
<INPUT NAME="Contact_Email" SIZE=25>
</TD>
</TR>
</TABLE>

</BLOCKQUOTE>
<P>
 כיצד הגעת אלינו?</P>
<BLOCKQUOTE>
<P>
<INPUT TYPE=CHECKBOX NAME="google">
גוגל<INPUT TYPE=CHECKBOX NAME="walla">
וואלה<INPUT TYPE=CHECKBOX NAME="nana">
נענע<INPUT TYPE=CHECKBOX NAME="ynet">
ynet<INPUT TYPE=CHECKBOX NAME="recommend">
המלצה<INPUT TYPE=CHECKBOX NAME="other">

אחר<BR>
</P>
</BLOCKQUOTE>
<P>
 פרט/י בקצרה:</P>
<BLOCKQUOTE>
<P>
<TEXTAREA NAME="Details" ROWS=5 COLS=74></TEXTAREA>
<BR>
 </P>
</BLOCKQUOTE>
 <INPUT NAME="submit" TYPE="SUBMIT" VALUE="שלח טופס">
<INPUT TYPE=RESET VALUE="אפס טופס">
</FORM>

<p> </td>
	<td valign="top" bgcolor="#719EB9" rowspan="3" colspan="3"> <p> </p>
	<p align="center"> <p align="center"><font color="#FFFFFF" face="Arial" size="4">
	<a style="text-decoration: none; color: #FFFFFF" href="new_page_8.htm">צור קשר</a></font></td>
	<td height="65"></td>
	</tr>
<tr>
	<td valign="top" bgcolor="#000066" rowspan="3"> </td>

	<td></td>
	<td></td>
	<td></td>
	<td valign="top" bgcolor="#000066" rowspan="3"> </td>
	<td></td>
	<td height="1"></td>
	</tr>
<tr>
	<td></td>

	<td valign="top" rowspan="2">
	<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" id="table4">
		<!-- MSCellFormattingTableID="14" -->
		<tr>
			<td bgcolor="#FFFFFF" colspan="3" height="1">
			<img alt="" width="1" height="1" src="images/MsSpacer.gif"></td>
		</tr>
		<tr>
			<td bgcolor="#FFFFFF" width="1">

			<img alt="" width="1" height="1" src="images/MsSpacer.gif"></td>
			<td valign="top" width="100%">
			<!-- MSCellFormattingType="content" -->
			<a href="new_page_1.htm">
			<img border="0" src="images/6143279_med1.jpg" width="82" height="125"></a></td>
			<td bgcolor="#FFFFFF" height="100%" width="1">
			<img alt="" width="1" height="1" src="images/MsSpacer.gif"></td>
		</tr>
		<tr>

			<td bgcolor="#FFFFFF" colspan="3" height="1">
			<img alt="" width="1" height="1" src="images/MsSpacer.gif"></td>
		</tr>
	</table>
	</td>
	<td></td>
	<td></td>
	<td height="99"></td>
	</tr>

<tr>
	<td></td>
	<td></td>
	<td></td>
	<td valign="top" bgcolor="#719EB9" rowspan="2"> </td>
	<td valign="top" bgcolor="#FFFFFF" rowspan="2"><font color="#000066">
	<a href="new_page_8.htm">
	<img border="0" src="images/j0323617.gif" width="60" height="60"></a></font></td>
	<td valign="top" bgcolor="#719EB9" rowspan="2"> </td>

	<td height="28"></td>
	</tr>
<tr>
	<td valign="top" bgcolor="#000066" rowspan="5" colspan="6">
	<p align="center"><b><font color="#FFFFFF" face="David">
	<a style="text-decoration: none; color: #FFFFFF" href="new_page_1.htm">יזהר צדוק</a></font></b></p>
 </td>
	<td height="32"></td>
	</tr>

<tr>
	<td valign="top" bgcolor="#719EB9" rowspan="4" colspan="3"> </td>
	<td height="273"></td>
	</tr>
<tr>
	<td valign="top" bgcolor="#FFFFFF" colspan="3"> </td>
	<td valign="top" bgcolor="#000066" colspan="6">
	<p align="center"><b><font color="#FFFFFF" face="Arial" size="4">צלצל 
	היום</font></b></td>

	<td valign="top" bgcolor="#FFFFFF" colspan="2"> </td>
	<td height="26"></td>
	</tr>
<tr>
	<td valign="top" bgcolor="#FFFFFF" colspan="11" rowspan="2">
 <p align="center"><b>
<font color="#CC3300" size="5" face="Arial">050-8767799 </font></b></p>
<p align="center"><font face="Arial" size="2">כל המופיע באתר זה הינו למידע 
כללי וראשוני בלבד ואינו נועד בשום מקרה לשמש כייעוץ כלשהו. כל הסתמכות על 
האמור הינה באחריות המסתמך ודעתו בלבד.מומלץ לקבל ייעוץ אישי ומקצועי מיועץ 
המתמחה בתחום.</font></td>

	<td height="92"></td>
	</tr>
<tr>
	<td> </td>
	<td height="30"></td>
	</tr>
<tr>
	<td width="46"></td>
	<td width="8"></td>

	<td width="1"></td>
	<td width="84"></td>
	<td width="1"></td>
	<td width="8"></td>
	<td width="1"></td>
	<td width="83"></td>
	<td width="28"></td>
	<td width="18"></td>
	<td width="95"></td>

	<td width="2"></td>
	<td width="120"></td>
	<td width="120"></td>
	<td width="14"></td>
	<td width="103"></td>
	<td width="39"></td>
	<td width="84"></td>
	<td width="21"></td>
	<td width="60"></td>

	<td width="21"></td>
	<td width="47"></td>		<td height="1" width="1"></td>
</tr>
</table>

</body>

</html>

 

Here is sent.php

 

<html dir="rtl">

<head>
<meta http-equiv="Content-Language" content="he">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ייעוץ לגיל הזהב-ביטוח לאומי,עובדים זרים-צור קשר</title>
<meta name="keywords" content="ביטוח לאומי,המוסד לביטוח לאומי,עובדים זרים,סיעוד,גיל הזהב">
<meta name="description" content="צור קשר">

<?php
$_GET["submit"]=$SUBMIT;
$_GET["FN"]=$FN;
echo $SUBMIT . "test";
echo "<br>" . $FN . "test";




?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.