Jump to content

View Page Source shows my email!!!


npsari

Recommended Posts

I am using the below php email from:

I have the email field hidden...

 

while($row = mysql_fetch_array($result))
  {
echo "<form name=\"theform\" action=\"/email.php\" method=\"POST\">";
print "<INPUT TYPE=hidden NAME=\"email\" value=\"[email protected]\" SIZE=1><BR>");
print "Your email:";
print "<INPUT TYPE=TEXT NAME=\"sender\" value=\"\" SIZE=25><BR><BR>";
print "Message body:";
print "<TEXTAREA NAME=\"message2\" ROWS=7 COLS=35></TEXTAREA><BR><BR>";
echo("<input type=\"image\" name=\"SUBMIT\" src=\"/h-images/all/email.gif\">");
echo("</form>")
}

 

But when a user clicks on view PageSource

They can see my email

Is there anyway to hide it completely?

Link to comment
https://forums.phpfreaks.com/topic/49488-view-page-source-shows-my-email/
Share on other sites

Well, the email actually changes

 

so, the field is like that...

 

 print "<INPUT TYPE=hidden NAME=\"email\" value=\"$row[Email]\" SIZE=1><BR><BR>\n";

 

As you can see, the email is derived from the mySQL databse

 

This form allows users to send an email to each other

But the reason of using the site for is to hide the email

 

And now, i realized that people can see it from Page Source

have email set as an ID then. so in the table where the users email is, im guessing your using an id like a primary key or whatever for each member? if so..

 

 

<INPUT TYPE=hidden NAME=\"email\" value=\"$row[iD]\" SIZE=1><BR><BR>\n";

 

then on the email.php before the mail(); grab the email row from the database where it matches ID

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.