Jump to content

Recommended Posts

Hello

I am trying to insert some PHP code in my HTML page inorder to validate the email address inserted. but when i press on Submit button, i am getting an error page" the web page cannot be found, and the web address looks like this: http://www.akaratonline.com/%3C?=$_SERVER['PHP_SELF']?>

note that my code is very long so i colored the php code in red, sorry.

 

 

 

<HTML>

<HEAD>

<TITLE> Akarat title </TITLE>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1256">

<meta http-equiv="Content-Language" content="ar-lb">

</HEAD>

<BODY BGCOLOR=#E6E6E6 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

<?php

if (!$_POST['submit'])

{

?><div align="center">

<table border="0" width="780" id="table1" cellspacing="0" cellpadding="0">

<tr>

<td>

<TABLE WIDTH=780 BORDER=0 CELLPADDING=0 CELLSPACING=0 id="table2">

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_01.gif" WIDTH=14 HEIGHT=38 ALT=""></TD>

<TD COLSPAN=4>

<IMG SRC="images/home-page-slices_02.gif" WIDTH=110 HEIGHT=38 ALT=""></TD>

<TD COLSPAN=7>

<IMG SRC="images/home-page-slices_03.gif" WIDTH=114 HEIGHT=38 ALT=""></TD>

<TD COLSPAN=6>

<IMG SRC="images/home-page-slices_04.gif" WIDTH=114 HEIGHT=38 ALT=""></TD>

<TD COLSPAN=7>

<IMG SRC="images/home-page-slices_05.gif" WIDTH=114 HEIGHT=38 ALT=""></TD>

<TD COLSPAN=8>

<IMG SRC="images/home-page-slices_06.gif" WIDTH=123 HEIGHT=38 ALT=""></TD>

<TD COLSPAN=4 ROWSPAN=5>

<IMG SRC="images/home-page-slices_07.gif" WIDTH=167 HEIGHT=123 ALT=""></TD>

<TD ROWSPAN=5>

<IMG SRC="images/home-page-slices_08.gif" WIDTH=24 HEIGHT=123 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=38 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_09.gif" WIDTH=14 HEIGHT=28 ALT=""></TD>

<TD COLSPAN=32>

<IMG SRC="images/home-page-slices_10.gif" WIDTH=575 HEIGHT=28 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=28 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_11.gif" WIDTH=14 HEIGHT=21 ALT=""></TD>

<TD COLSPAN=7>

<IMG SRC="images/home-page-slices_12.gif" WIDTH=204 HEIGHT=21 ALT=""></TD>

<TD ROWSPAN=2>

<IMG SRC="images/home-page-slices_13.gif" WIDTH=5 HEIGHT=26 ALT=""></TD>

<TD COLSPAN=10 ROWSPAN=2>

<IMG SRC="images/home-page-slices_14.gif" WIDTH=135 HEIGHT=26 ALT=""></TD>

<TD COLSPAN=14 ROWSPAN=2>

<IMG SRC="images/home-page-slices_15.gif" WIDTH=231 HEIGHT=26 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=21 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2 ROWSPAN=3>

<IMG SRC="images/home-page-slices_16.gif" WIDTH=14 HEIGHT=46 ALT=""></TD>

<TD ROWSPAN=4>

<IMG SRC="images/home-page-slices_17.gif" WIDTH=9 HEIGHT=58 ALT=""></TD>

<TD COLSPAN=6>

<IMG SRC="images/home-page-slices_18.gif" WIDTH=195 HEIGHT=5 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=15 ROWSPAN=3 background="images/home-page-slices_21.gif" valign="top">

<form method="POST" action="login.php">

<p style="margin-top: 8px" align="center">

<input type="submit" value="دخول" name="B2" style="font-family: Tahoma; font-size: 13"><span lang="en-us">   

<input type="text" name="pass" size="15" value="password">

<input type="text" name="email" size="15" value="username"></span></p>

</form>

</TD>

<TD ROWSPAN=3>

<IMG SRC="images/home-page-slices_21.gif" WIDTH=15 HEIGHT=53 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=3>

<IMG SRC="images/home-page-slices_22.gif" WIDTH=12 HEIGHT=53 ALT=""></TD>

<TD COLSPAN=9 ROWSPAN=3 background="images/home-page-slices_24.gif" valign="top">

 

 

<form action="<?=$_SERVER['PHP_SELF']?>" method="POST">

<p style="margin-top: 8px" align="center">

<input type="submit" value="تنفيذ" name="B1" style="font-family: Tahoma; font-size: 13"><span lang="en-us"> 

<input type="text" name="email" size="21"></span></p>

</form>

<?php

}

else

{

$email=(!isset($_POST['email']) || !ereg('^([a-zA-Z0-9_-]+)([\.a-zA-Z0-9_-]+)@([a-zA-Z0-9_-]+)(\.[a-zA-Z0-9_-]+)+$', $_POST['email']))? die ('Error: Enter a vaid email address') : mysql_escape_string(trim($_POST['email']));

include('global.inc.php');

 

$q="INSERT INTO mlist (num, email) VALUES (NULL, '$email')";

$result=mysql_query($q, $dbh);

echo "working";

}

?> </TD>

<TD COLSPAN=2 ROWSPAN=3>

<IMG SRC="images/home-page-slices_24.gif" WIDTH=13 HEIGHT=53 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=2>

<IMG SRC="images/home-page-slices_25.gif" WIDTH=9 HEIGHT=41 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=31 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=4>

<IMG SRC="images/home-page-slices_26.gif" WIDTH=167 HEIGHT=10 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_27.gif" WIDTH=24 HEIGHT=10 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=10 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2 ROWSPAN=31>

<IMG SRC="images/home-page-slices_28.gif" WIDTH=14 HEIGHT=321 ALT=""></TD>

<TD ROWSPAN=20>

<IMG SRC="images/home-page-slices_29.gif" WIDTH=5 HEIGHT=173 ALT=""></TD>

<TD COLSPAN=4 ROWSPAN=2>

<IMG SRC="images/home-page-slices_30.gif" WIDTH=156 HEIGHT=23 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=7>

<IMG SRC="images/home-page-slices_31.gif" WIDTH=39 HEIGHT=70 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=6 ROWSPAN=30>

<IMG SRC="images/home-page-slices_32.gif" WIDTH=188 HEIGHT=309 ALT=""></TD>

<TD COLSPAN=24 ROWSPAN=6>

<IMG SRC="images/home-page-slices_33.gif" WIDTH=378 HEIGHT=58 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=11 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2 ROWSPAN=11>

<IMG SRC="images/home-page-slices_34.gif" WIDTH=7 HEIGHT=91 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_35.gif" WIDTH=134 HEIGHT=18 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_36.gif" WIDTH=15 HEIGHT=18 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=18 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_37.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>

</TR>

<TR>

<TD>

<IMG SRC="images/home-page-slices_38.gif" WIDTH=134 HEIGHT=17 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_39.gif" WIDTH=15 HEIGHT=17 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=17 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_40.gif" WIDTH=149 HEIGHT=3 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=3 ALT=""></TD>

</TR>

<TR>

<TD ROWSPAN=2>

<IMG SRC="images/home-page-slices_41.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>

<TD ROWSPAN=2>

<IMG SRC="images/home-page-slices_42.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=19 ROWSPAN=3>

<IMG SRC="images/home-page-slices_43.gif" WIDTH=300 HEIGHT=31 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=3>

<IMG SRC="images/home-page-slices_44.gif" WIDTH=51 HEIGHT=31 ALT=""></TD>

<TD COLSPAN=3 ROWSPAN=3>

<IMG SRC="images/home-page-slices_45.gif" WIDTH=27 HEIGHT=31 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=21>

<IMG SRC="images/home-page-slices_46.gif" WIDTH=39 HEIGHT=176 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=11 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_47.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>

</TR>

<TR>

<TD>

<IMG SRC="images/home-page-slices_48.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_49.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=7 ROWSPAN=4>

<IMG SRC="images/home-page-slices_50.gif" WIDTH=53 HEIGHT=20 ALT=""></TD>

<TD COLSPAN=14 ROWSPAN=2>

<IMG SRC="images/home-page-slices_51.gif" WIDTH=298 HEIGHT=9 ALT=""></TD>

<TD COLSPAN=3 ROWSPAN=4>

<IMG SRC="images/home-page-slices_52.gif" WIDTH=27 HEIGHT=20 ALT=""></TD>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_53.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>

</TR>

<TR>

<TD ROWSPAN=3>

<IMG SRC="images/home-page-slices_54.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>

<TD ROWSPAN=3>

<IMG SRC="images/home-page-slices_55.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=14 ROWSPAN=20>

<IMG SRC="images/home-page-slices_56.gif" WIDTH=298 HEIGHT=216 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2 ROWSPAN=10>

<IMG SRC="images/home-page-slices_57.gif" WIDTH=7 HEIGHT=87 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=7 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2 ROWSPAN=19>

<IMG SRC="images/home-page-slices_58.gif" WIDTH=21 HEIGHT=217 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=19>

<IMG SRC="images/home-page-slices_59.gif" WIDTH=11 HEIGHT=217 ALT=""></TD>

<TD COLSPAN=3 ROWSPAN=19>

<IMG SRC="images/home-page-slices_60.gif" WIDTH=21 HEIGHT=217 ALT=""></TD>

<TD COLSPAN=3 ROWSPAN=17>

<IMG SRC="images/home-page-slices_61.gif" WIDTH=27 HEIGHT=200 ALT=""></TD>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_62.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>

</TR>

<TR>

<TD>

<IMG SRC="images/home-page-slices_63.gif" WIDTH=134 HEIGHT=15 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_64.gif" WIDTH=15 HEIGHT=15 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=15 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_65.gif" WIDTH=149 HEIGHT=5 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>

</TR>

<TR>

<TD>

<IMG SRC="images/home-page-slices_66.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_67.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_68.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>

</TR>

<TR>

<TD ROWSPAN=2>

<IMG SRC="images/home-page-slices_69.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>

<TD ROWSPAN=2>

<IMG SRC="images/home-page-slices_70.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>

</TR>

<TR>

<TD ROWSPAN=10>

<IMG SRC="images/home-page-slices_71.gif" WIDTH=5 HEIGHT=98 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_72.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>

</TR>

<TR>

<TD>

<IMG SRC="images/home-page-slices_73.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_74.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2 ROWSPAN=7>

<IMG SRC="images/home-page-slices_75.gif" WIDTH=7 HEIGHT=70 ALT=""></TD>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_76.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>

</TR>

<TR>

<TD>

<IMG SRC="images/home-page-slices_77.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_78.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_79.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>

</TR>

<TR>

<TD>

<IMG SRC="images/home-page-slices_80.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_81.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_82.gif" WIDTH=149 HEIGHT=5 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_83.gif" WIDTH=149 HEIGHT=13 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=2>

<IMG SRC="images/home-page-slices_84.gif" WIDTH=39 HEIGHT=25 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=13 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2>

<IMG SRC="images/home-page-slices_85.gif" WIDTH=149 HEIGHT=12 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>

</TR>

<TR>

<TD ROWSPAN=8>

<IMG SRC="images/home-page-slices_86.gif" WIDTH=5 HEIGHT=255 ALT=""></TD>

<TD COLSPAN=5 ROWSPAN=8>

<IMG SRC="images/home-page-slices_87.gif" WIDTH=171 HEIGHT=255 ALT=""></TD>

<TD ROWSPAN=8>

<IMG SRC="images/home-page-slices_88.gif" WIDTH=24 HEIGHT=255 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2 ROWSPAN=2>

<IMG SRC="images/home-page-slices_89.gif" WIDTH=14 HEIGHT=17 ALT=""></TD>

<TD COLSPAN=6 ROWSPAN=2>

<IMG SRC="images/home-page-slices_90.gif" WIDTH=188 HEIGHT=17 ALT=""></TD>

<TD COLSPAN=3 ROWSPAN=2>

<IMG SRC="images/home-page-slices_91.gif" WIDTH=27 HEIGHT=17 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=13>

<IMG SRC="images/home-page-slices_92.gif" WIDTH=288 HEIGHT=12 ALT=""></TD>

<TD>

<IMG SRC="images/home-page-slices_93.gif" WIDTH=10 HEIGHT=12 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>

</TR>

<TR>

<TD ROWSPAN=4>

<IMG SRC="images/home-page-slices_94.gif" WIDTH=9 HEIGHT=146 ALT=""></TD>

<TD COLSPAN=8 ROWSPAN=4>

<IMG SRC="images/home-page-slices_95.gif" WIDTH=209 HEIGHT=146 ALT=""></TD>

<TD COLSPAN=23>

<IMG SRC="images/home-page-slices_96.gif" WIDTH=362 HEIGHT=8 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=4 ROWSPAN=7>

<IMG SRC="images/home-page-slices_97.gif" WIDTH=20 HEIGHT=210 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=2>

<IMG SRC="images/home-page-slices_98.gif" WIDTH=17 HEIGHT=12 ALT=""></TD>

<TD COLSPAN=7 ROWSPAN=2>

<IMG SRC="images/home-page-slices_99.gif" WIDTH=133 HEIGHT=12 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=2>

<IMG SRC="images/home-page-slices_100.gif" WIDTH=22 HEIGHT=12 ALT=""></TD>

<TD COLSPAN=7>

<IMG SRC="images/home-page-slices_101.gif" WIDTH=163 HEIGHT=6 ALT=""></TD>

<TD ROWSPAN=7>

<IMG SRC="images/home-page-slices_102.gif" WIDTH=7 HEIGHT=210 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=6 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=7 ROWSPAN=6>

<IMG SRC="images/home-page-slices_103.gif" WIDTH=163 HEIGHT=204 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=6 ALT=""></TD>

</TR>

<TR>

<TD ROWSPAN=5>

<IMG SRC="images/home-page-slices_104.gif" WIDTH=10 HEIGHT=198 ALT=""></TD>

<TD COLSPAN=9 ROWSPAN=3>

<IMG SRC="images/home-page-slices_105.gif" WIDTH=150 HEIGHT=180 ALT=""></TD>

<TD ROWSPAN=3>

<IMG SRC="images/home-page-slices_106.gif" WIDTH=12 HEIGHT=180 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=126 ALT=""></TD>

</TR>

<TR>

<TD ROWSPAN=6>

<IMG SRC="images/home-page-slices_107.gif" WIDTH=9 HEIGHT=129 ALT=""></TD>

<TD COLSPAN=3 ROWSPAN=3>

<IMG SRC="images/home-page-slices_108.gif" WIDTH=71 HEIGHT=64 ALT=""></TD>

<TD COLSPAN=3 ROWSPAN=5>

<IMG SRC="images/home-page-slices_109.gif" WIDTH=92 HEIGHT=99 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=9>

<IMG SRC="images/home-page-slices_110.gif" WIDTH=46 HEIGHT=199 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=42 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=7 ROWSPAN=3>

<IMG SRC="images/home-page-slices_111.gif" WIDTH=200 HEIGHT=30 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=10 ROWSPAN=2>

<IMG SRC="images/home-page-slices_112.gif" WIDTH=162 HEIGHT=18 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=10 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=3 ROWSPAN=5>

<IMG SRC="images/home-page-slices_113.gif" WIDTH=71 HEIGHT=97 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=2 ROWSPAN=5>

<IMG SRC="images/home-page-slices_114.gif" WIDTH=12 HEIGHT=127 ALT=""></TD>

<TD COLSPAN=5 ROWSPAN=5>

<IMG SRC="images/home-page-slices_115.gif" WIDTH=36 HEIGHT=127 ALT=""></TD>

<TD ROWSPAN=3>

<IMG SRC="images/home-page-slices_116.gif" WIDTH=51 HEIGHT=68 ALT=""></TD>

<TD COLSPAN=6 ROWSPAN=3>

<IMG SRC="images/home-page-slices_117.gif" WIDTH=81 HEIGHT=68 ALT=""></TD>

<TD COLSPAN=2 ROWSPAN=3>

<IMG SRC="images/home-page-slices_118.gif" WIDTH=55 HEIGHT=68 ALT=""></TD>

<TD COLSPAN=5 ROWSPAN=3>

<IMG SRC="images/home-page-slices_119.gif" WIDTH=114 HEIGHT=68 ALT=""></TD>

<TD COLSPAN=3 ROWSPAN=5>

<IMG SRC="images/home-page-slices_120.gif" WIDTH=18 HEIGHT=127 ALT=""></TD>

<TD COLSPAN=6 ROWSPAN=5>

<IMG SRC="images/home-page-slices_121.gif" WIDTH=195 HEIGHT=127 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=27 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=3 ROWSPAN=4>

<IMG SRC="images/home-page-slices_122.gif" WIDTH=92 HEIGHT=100 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=30 ALT=""></TD>

</TR>

<TR>

<TD ROWSPAN=3>

<IMG SRC="images/home-page-slices_123.gif" WIDTH=9 HEIGHT=70 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=11 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=14 ROWSPAN=2>

<IMG SRC="images/home-page-slices_124.gif" WIDTH=301 HEIGHT=59 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=21 ALT=""></TD>

</TR>

<TR>

<TD COLSPAN=3>

<IMG SRC="images/home-page-slices_125.gif" WIDTH=71 HEIGHT=38 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=38 ALT=""></TD>

</TR>

<TR>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=9 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=9 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=57 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=16 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=48 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=30 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=16 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=7 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=7 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=11 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=51 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=20 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=6 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=6 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=24 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=12 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=43 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=13 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=36 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=41 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=14 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=6 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=7 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=134 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>

<TD>

<IMG SRC="images/spacer.gif" WIDTH=24 HEIGHT=1 ALT=""></TD>

<TD></TD>

</TR>

</TABLE>

</td>

</tr>

</table>

</div>

</BODY>

</HTML>

Link to comment
https://forums.phpfreaks.com/topic/90701-email-verification/
Share on other sites

<form action="<?=$_SERVER['PHP_SELF']?>" method="POST">

 

Should be?

 

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">

 

And please, for the love, use the code tags. They are your friends. No one wants to scroll through 5 pages of code that isn't formatted. ;)

Link to comment
https://forums.phpfreaks.com/topic/90701-email-verification/#findComment-464940
Share on other sites

Hello, the problem still exists. when I press on submit button, I get this in the web address:

http://www.akaratonline.com/%3C?php%20echo%20$_SERVER['PHP_SELF'];%20?>

 

and The webpage cannot be found:

 

my code is:

 

<HTML>
<HEAD>
<TITLE> title </TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1256">
<meta http-equiv="Content-Language" content="ar-lb">
</HEAD>
<BODY BGCOLOR=#E6E6E6 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<?php
if (!$_POST['submit'])
{
?>
<div align="center">
<table border="0" width="780" id="table1" cellspacing="0" cellpadding="0">
	<tr>
		<td>
<TABLE WIDTH=780 BORDER=0 CELLPADDING=0 CELLSPACING=0 id="table2">
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_01.gif" WIDTH=14 HEIGHT=38 ALT=""></TD>
	<TD COLSPAN=4>
		<IMG SRC="images/home-page-slices_02.gif" WIDTH=110 HEIGHT=38 ALT=""></TD>
	<TD COLSPAN=7>
		<IMG SRC="images/home-page-slices_03.gif" WIDTH=114 HEIGHT=38 ALT=""></TD>
	<TD COLSPAN=6>
		<IMG SRC="images/home-page-slices_04.gif" WIDTH=114 HEIGHT=38 ALT=""></TD>
	<TD COLSPAN=7>
		<IMG SRC="images/home-page-slices_05.gif" WIDTH=114 HEIGHT=38 ALT=""></TD>
	<TD COLSPAN=8>
		<IMG SRC="images/home-page-slices_06.gif" WIDTH=123 HEIGHT=38 ALT=""></TD>
	<TD COLSPAN=4 ROWSPAN=5>
		<IMG SRC="images/home-page-slices_07.gif" WIDTH=167 HEIGHT=123 ALT=""></TD>
	<TD ROWSPAN=5>
		<IMG SRC="images/home-page-slices_08.gif" WIDTH=24 HEIGHT=123 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=38 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_09.gif" WIDTH=14 HEIGHT=28 ALT=""></TD>
	<TD COLSPAN=32>
		<IMG SRC="images/home-page-slices_10.gif" WIDTH=575 HEIGHT=28 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=28 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_11.gif" WIDTH=14 HEIGHT=21 ALT=""></TD>
	<TD COLSPAN=7>
		<IMG SRC="images/home-page-slices_12.gif" WIDTH=204 HEIGHT=21 ALT=""></TD>
	<TD ROWSPAN=2>
		<IMG SRC="images/home-page-slices_13.gif" WIDTH=5 HEIGHT=26 ALT=""></TD>
	<TD COLSPAN=10 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_14.gif" WIDTH=135 HEIGHT=26 ALT=""></TD>
	<TD COLSPAN=14 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_15.gif" WIDTH=231 HEIGHT=26 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=21 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_16.gif" WIDTH=14 HEIGHT=46 ALT=""></TD>
	<TD ROWSPAN=4>
		<IMG SRC="images/home-page-slices_17.gif" WIDTH=9 HEIGHT=58 ALT=""></TD>
	<TD COLSPAN=6>
		<IMG SRC="images/home-page-slices_18.gif" WIDTH=195 HEIGHT=5 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=15 ROWSPAN=3 background="images/home-page-slices_21.gif" valign="top">
		<form method="POST" action="login.php">
			<p style="margin-top: 8px" align="center">
			<input type="submit" value="دخول" name="B2" style="font-family: Tahoma; font-size: 13"><span lang="en-us">   
			<input type="text" name="pass" size="15" value="password">
			<input type="text" name="email" size="15" value="username"></span></p>
		</form>
	</TD>
	<TD ROWSPAN=3>
		<IMG SRC="images/home-page-slices_21.gif" WIDTH=15 HEIGHT=53 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_22.gif" WIDTH=12 HEIGHT=53 ALT=""></TD>
	<TD COLSPAN=9 ROWSPAN=3 background="images/home-page-slices_24.gif" valign="top">


<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
			<p style="margin-top: 8px" align="center">
			<input type="submit" value="تنفيذ" name="B1" style="font-family: Tahoma; font-size: 13"><span lang="en-us"> 
			<input type="text" name="email" size="21"></span></p>
		</form>
		<?php
		}
		else
		{
		$email=(!isset($_POST['email']) || !ereg('^([a-zA-Z0-9_-]+)([\.a-zA-Z0-9_-]+)@([a-zA-Z0-9_-]+)(\.[a-zA-Z0-9_-]+)+$', $_POST['email']))? die ('Error: Enter a vaid email address') : mysql_escape_string(trim($_POST['email']));
		include('global.inc.php');

	$q="INSERT INTO mlist (num, email) VALUES (NULL, '$email')";
	$result=mysql_query($q, $dbh);
		echo "working";
		}
		?>
	</TD>
	<TD COLSPAN=2 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_24.gif" WIDTH=13 HEIGHT=53 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_25.gif" WIDTH=9 HEIGHT=41 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=31 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=4>
		<IMG SRC="images/home-page-slices_26.gif" WIDTH=167 HEIGHT=10 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_27.gif" WIDTH=24 HEIGHT=10 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=10 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=31>
		<IMG SRC="images/home-page-slices_28.gif" WIDTH=14 HEIGHT=321 ALT=""></TD>
	<TD ROWSPAN=20>
		<IMG SRC="images/home-page-slices_29.gif" WIDTH=5 HEIGHT=173 ALT=""></TD>
	<TD COLSPAN=4 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_30.gif" WIDTH=156 HEIGHT=23 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=7>
		<IMG SRC="images/home-page-slices_31.gif" WIDTH=39 HEIGHT=70 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=6 ROWSPAN=30>
		<IMG SRC="images/home-page-slices_32.gif" WIDTH=188 HEIGHT=309 ALT=""></TD>
	<TD COLSPAN=24 ROWSPAN=6>
		<IMG SRC="images/home-page-slices_33.gif" WIDTH=378 HEIGHT=58 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=11 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=11>
		<IMG SRC="images/home-page-slices_34.gif" WIDTH=7 HEIGHT=91 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_35.gif" WIDTH=134 HEIGHT=18 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_36.gif" WIDTH=15 HEIGHT=18 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=18 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_37.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
</TR>
<TR>
	<TD>
		<IMG SRC="images/home-page-slices_38.gif" WIDTH=134 HEIGHT=17 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_39.gif" WIDTH=15 HEIGHT=17 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=17 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_40.gif" WIDTH=149 HEIGHT=3 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=3 ALT=""></TD>
</TR>
<TR>
	<TD ROWSPAN=2>
		<IMG SRC="images/home-page-slices_41.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>
	<TD ROWSPAN=2>
		<IMG SRC="images/home-page-slices_42.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=19 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_43.gif" WIDTH=300 HEIGHT=31 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_44.gif" WIDTH=51 HEIGHT=31 ALT=""></TD>
	<TD COLSPAN=3 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_45.gif" WIDTH=27 HEIGHT=31 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=21>
		<IMG SRC="images/home-page-slices_46.gif" WIDTH=39 HEIGHT=176 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=11 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_47.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
</TR>
<TR>
	<TD>
		<IMG SRC="images/home-page-slices_48.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_49.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=7 ROWSPAN=4>
		<IMG SRC="images/home-page-slices_50.gif" WIDTH=53 HEIGHT=20 ALT=""></TD>
	<TD COLSPAN=14 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_51.gif" WIDTH=298 HEIGHT=9 ALT=""></TD>
	<TD COLSPAN=3 ROWSPAN=4>
		<IMG SRC="images/home-page-slices_52.gif" WIDTH=27 HEIGHT=20 ALT=""></TD>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_53.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
</TR>
<TR>
	<TD ROWSPAN=3>
		<IMG SRC="images/home-page-slices_54.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>
	<TD ROWSPAN=3>
		<IMG SRC="images/home-page-slices_55.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=14 ROWSPAN=20>
		<IMG SRC="images/home-page-slices_56.gif" WIDTH=298 HEIGHT=216 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=10>
		<IMG SRC="images/home-page-slices_57.gif" WIDTH=7 HEIGHT=87 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=7 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=19>
		<IMG SRC="images/home-page-slices_58.gif" WIDTH=21 HEIGHT=217 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=19>
		<IMG SRC="images/home-page-slices_59.gif" WIDTH=11 HEIGHT=217 ALT=""></TD>
	<TD COLSPAN=3 ROWSPAN=19>
		<IMG SRC="images/home-page-slices_60.gif" WIDTH=21 HEIGHT=217 ALT=""></TD>
	<TD COLSPAN=3 ROWSPAN=17>
		<IMG SRC="images/home-page-slices_61.gif" WIDTH=27 HEIGHT=200 ALT=""></TD>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_62.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
</TR>
<TR>
	<TD>
		<IMG SRC="images/home-page-slices_63.gif" WIDTH=134 HEIGHT=15 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_64.gif" WIDTH=15 HEIGHT=15 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=15 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_65.gif" WIDTH=149 HEIGHT=5 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>
</TR>
<TR>
	<TD>
		<IMG SRC="images/home-page-slices_66.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_67.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_68.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
</TR>
<TR>
	<TD ROWSPAN=2>
		<IMG SRC="images/home-page-slices_69.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>
	<TD ROWSPAN=2>
		<IMG SRC="images/home-page-slices_70.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>
</TR>
<TR>
	<TD ROWSPAN=10>
		<IMG SRC="images/home-page-slices_71.gif" WIDTH=5 HEIGHT=98 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_72.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
</TR>
<TR>
	<TD>
		<IMG SRC="images/home-page-slices_73.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_74.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=7>
		<IMG SRC="images/home-page-slices_75.gif" WIDTH=7 HEIGHT=70 ALT=""></TD>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_76.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
</TR>
<TR>
	<TD>
		<IMG SRC="images/home-page-slices_77.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_78.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_79.gif" WIDTH=149 HEIGHT=4 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
</TR>
<TR>
	<TD>
		<IMG SRC="images/home-page-slices_80.gif" WIDTH=134 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_81.gif" WIDTH=15 HEIGHT=16 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=16 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_82.gif" WIDTH=149 HEIGHT=5 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_83.gif" WIDTH=149 HEIGHT=13 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_84.gif" WIDTH=39 HEIGHT=25 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=13 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2>
		<IMG SRC="images/home-page-slices_85.gif" WIDTH=149 HEIGHT=12 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>
</TR>
<TR>
	<TD ROWSPAN=8>
		<IMG SRC="images/home-page-slices_86.gif" WIDTH=5 HEIGHT=255 ALT=""></TD>
	<TD COLSPAN=5 ROWSPAN=8>
		<IMG SRC="images/home-page-slices_87.gif" WIDTH=171 HEIGHT=255 ALT=""></TD>
	<TD ROWSPAN=8>
		<IMG SRC="images/home-page-slices_88.gif" WIDTH=24 HEIGHT=255 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_89.gif" WIDTH=14 HEIGHT=17 ALT=""></TD>
	<TD COLSPAN=6 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_90.gif" WIDTH=188 HEIGHT=17 ALT=""></TD>
	<TD COLSPAN=3 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_91.gif" WIDTH=27 HEIGHT=17 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=13>
		<IMG SRC="images/home-page-slices_92.gif" WIDTH=288 HEIGHT=12 ALT=""></TD>
	<TD>
		<IMG SRC="images/home-page-slices_93.gif" WIDTH=10 HEIGHT=12 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>
</TR>
<TR>
	<TD ROWSPAN=4>
		<IMG SRC="images/home-page-slices_94.gif" WIDTH=9 HEIGHT=146 ALT=""></TD>
	<TD COLSPAN=8 ROWSPAN=4>
		<IMG SRC="images/home-page-slices_95.gif" WIDTH=209 HEIGHT=146 ALT=""></TD>
	<TD COLSPAN=23>
		<IMG SRC="images/home-page-slices_96.gif" WIDTH=362 HEIGHT=8 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=4 ROWSPAN=7>
		<IMG SRC="images/home-page-slices_97.gif" WIDTH=20 HEIGHT=210 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_98.gif" WIDTH=17 HEIGHT=12 ALT=""></TD>
	<TD COLSPAN=7 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_99.gif" WIDTH=133 HEIGHT=12 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_100.gif" WIDTH=22 HEIGHT=12 ALT=""></TD>
	<TD COLSPAN=7>
		<IMG SRC="images/home-page-slices_101.gif" WIDTH=163 HEIGHT=6 ALT=""></TD>
	<TD ROWSPAN=7>
		<IMG SRC="images/home-page-slices_102.gif" WIDTH=7 HEIGHT=210 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=6 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=7 ROWSPAN=6>
		<IMG SRC="images/home-page-slices_103.gif" WIDTH=163 HEIGHT=204 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=6 ALT=""></TD>
</TR>
<TR>
	<TD ROWSPAN=5>
		<IMG SRC="images/home-page-slices_104.gif" WIDTH=10 HEIGHT=198 ALT=""></TD>
	<TD COLSPAN=9 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_105.gif" WIDTH=150 HEIGHT=180 ALT=""></TD>
	<TD ROWSPAN=3>
		<IMG SRC="images/home-page-slices_106.gif" WIDTH=12 HEIGHT=180 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=126 ALT=""></TD>
</TR>
<TR>
	<TD ROWSPAN=6>
		<IMG SRC="images/home-page-slices_107.gif" WIDTH=9 HEIGHT=129 ALT=""></TD>
	<TD COLSPAN=3 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_108.gif" WIDTH=71 HEIGHT=64 ALT=""></TD>
	<TD COLSPAN=3 ROWSPAN=5>
		<IMG SRC="images/home-page-slices_109.gif" WIDTH=92 HEIGHT=99 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=9>
		<IMG SRC="images/home-page-slices_110.gif" WIDTH=46 HEIGHT=199 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=42 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=7 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_111.gif" WIDTH=200 HEIGHT=30 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=10 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_112.gif" WIDTH=162 HEIGHT=18 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=10 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=3 ROWSPAN=5>
		<IMG SRC="images/home-page-slices_113.gif" WIDTH=71 HEIGHT=97 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=2 ROWSPAN=5>
		<IMG SRC="images/home-page-slices_114.gif" WIDTH=12 HEIGHT=127 ALT=""></TD>
	<TD COLSPAN=5 ROWSPAN=5>
		<IMG SRC="images/home-page-slices_115.gif" WIDTH=36 HEIGHT=127 ALT=""></TD>
	<TD ROWSPAN=3>
		<IMG SRC="images/home-page-slices_116.gif" WIDTH=51 HEIGHT=68 ALT=""></TD>
	<TD COLSPAN=6 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_117.gif" WIDTH=81 HEIGHT=68 ALT=""></TD>
	<TD COLSPAN=2 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_118.gif" WIDTH=55 HEIGHT=68 ALT=""></TD>
	<TD COLSPAN=5 ROWSPAN=3>
		<IMG SRC="images/home-page-slices_119.gif" WIDTH=114 HEIGHT=68 ALT=""></TD>
	<TD COLSPAN=3 ROWSPAN=5>
		<IMG SRC="images/home-page-slices_120.gif" WIDTH=18 HEIGHT=127 ALT=""></TD>
	<TD COLSPAN=6 ROWSPAN=5>
		<IMG SRC="images/home-page-slices_121.gif" WIDTH=195 HEIGHT=127 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=27 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=3 ROWSPAN=4>
		<IMG SRC="images/home-page-slices_122.gif" WIDTH=92 HEIGHT=100 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=30 ALT=""></TD>
</TR>
<TR>
	<TD ROWSPAN=3>
		<IMG SRC="images/home-page-slices_123.gif" WIDTH=9 HEIGHT=70 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=11 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=14 ROWSPAN=2>
		<IMG SRC="images/home-page-slices_124.gif" WIDTH=301 HEIGHT=59 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=21 ALT=""></TD>
</TR>
<TR>
	<TD COLSPAN=3>
		<IMG SRC="images/home-page-slices_125.gif" WIDTH=71 HEIGHT=38 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=38 ALT=""></TD>
</TR>
<TR>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=9 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=9 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=57 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=16 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=48 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=30 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=16 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=7 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=7 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=11 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=51 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=20 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=6 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=6 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=24 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=12 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=43 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=13 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=36 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=41 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=14 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=6 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=7 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=134 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>
	<TD>
		<IMG SRC="images/spacer.gif" WIDTH=24 HEIGHT=1 ALT=""></TD>
	<TD></TD>
</TR>
</TABLE>
		</td>
	</tr>
</table>
</div>
</BODY>
</HTML>

Link to comment
https://forums.phpfreaks.com/topic/90701-email-verification/#findComment-465016
Share on other sites

Either your document isn't named with a .php extension, or you are trying to view your page without running it through a server.

 

I'm going to offer up a suggestion for you. You should probably take some time and learn some proper xhtml (or at least html) and CSS, then work on php. I think you are going at it in the wrong order.

Link to comment
https://forums.phpfreaks.com/topic/90701-email-verification/#findComment-465024
Share on other sites

Hi

I think i am silly

the page was named index.html. i changed it now to index.php

http://www.akaratonline.com/index.php

at least i am not getting any error now but if i write an invalid email adddress and then press on submit, nothing happens except as if i made a refresh for the page.

i checked the table in my database, now new records were inserted, please give me some help.

thanks

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/90701-email-verification/#findComment-465035
Share on other sites

here's the code, i don't care about the insertion code, but i care for the validation.

Thanks

 

<?php
if (!$_POST['submit'])
{
?>

 

then the form goes here, after that this code:

 

			<?php
		}
		else
		{
		$email=(!isset($_POST['email']) || !ereg('^([a-zA-Z0-9_-]+)([\.a-zA-Z0-9_-]+)@([a-zA-Z0-9_-]+)(\.[a-zA-Z0-9_-]+)+$', $_POST['email']))? die ('Error: Enter a vaid email address') : mysql_escape_string(trim($_POST['email']));

		include('CMS/global.inc.php');

	$q="INSERT INTO mlist (num, email) VALUES (NULL, '$email')";
	$result=mysql_query($q, $dbh);
		echo "working";
		}
		?>

Link to comment
https://forums.phpfreaks.com/topic/90701-email-verification/#findComment-465052
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.