Jump to content

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=\"myemail@yahoo.com\" 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

 

 

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.