PHP Form coding with no response -


i have used php code inside page not working in localhost showing undefined variable in textboxes , selectboxes have given this:

$propertyid = ereg_replace("[^a-za-z0-9-]", "", $_post['propertyid']);  $propertyname = ereg_replace("[^a-za-z0-9]", "", $_post['propertyname']);  $propertytype = ereg_replace("[^a-z a-z0-9]", "", $_post['propertytype']);  $propertydealtype = ereg_replace("[^a-z a-z0-9]", "", $_post['propertydealtype']); $propertystreet = ereg_replace("[^a-z a-z0-9]", "", $_post['propertystreet']);     <td width="249" align="left" valign="middle">propertyid:</td>   <td width="739"><input name="propertyid" type="text" value="<?php echo "$propertyid"; ?>" /></td> </tr>     <tr>   <td width="249" align="left" valign="middle">propertyname:</td>   <td width="739"><input name="propertyname" type="text" value="<?php echo "$propertyname"; ?>" /></td> </tr> <tr>   <td align="left" valign="middle">property type:</td>   <td><select name="propertytype">   <option value="<?php echo "$propertytype"; ?>"><?php echo "$propertytype"; ?></option>   <option value="appartment/fla">appartment/flat</option>   <option value="farm house">farm house</option>   <option value="guest house">guest house</option>   <option value="lord">lord</option>   <option value="hostel">hostel</option>   </select></td> </tr>     <tr>   <td align="left" valign="middle">deal type:</td>   <td><select name="propertydealtype">     <option value="<?php echo "$propertydealtype"; ?>"><?php echo "$propertydealtype"; ?></option>     <option value="for sale">for sale</option>     <option value="for rent">for rent</option>     <option value="for lease">for lease</option>     <option value="ejara">ejara</option>     <option value="sar qulfi">sar qulfi</option>   </select></td>  <tr>   <td align="left" valign="middle">property streeet:</td>   <td><input name="propertystreet" type="text" value="<?php echo "$propertystreet"; ?>" /></td> </tr> 

inside of each box whenever executing in localhost receiving errors inside boxes.

i'm not sure how ereg_replace works, first of it's deprecated, , second - think cannot have spaces between expressions => "[^a-z a-z0-9]" should "[^a-za-z0-9]"


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -