Jump to content


Retrieve Email Values


3 replies to this topic

#1 JoeVincetti

    Young Padawan

  • Members
  • Pip
  • 82 posts

Posted 21 July 2005 - 03:58 PM

Is there a way to retrieve the values of feilds entered in an email form?

Example: A user enters in their email address on site and an email with a registration form is sent to their email address. They then open up the email and fill in fields. They then hit submit and are taken to a page on site where values are entered.

#2 dEcade

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,850 posts
  • Gender:Male
  • Location:Saskatoon, Saskatchewan
  • Interests:Guitar, Programming, Storm Chasing, Games (Designing and playing), Hockey, Photography

Posted 21 July 2005 - 05:49 PM

Why would you send them the form in an e-mail why not have the form on the site or have the link to the form in the email buy as far as I know you can't send forums :D maybe you can i don't know.

Maybe something like this (I didn't test it)

<?php
if($_POST)
{
	$email = $_POST['email'];
	$form = 'YOUR FORM HERE';
	mail($email, 'Register', $form);
}
else
{
	echo '<form action="'. $PHP_SELF .'" method="post">
	<input type="text" name="email" size="20" />
	<input type="submit" value="Submit" />';
}
?>

Then make sure that you change YOUR FORM HERE to what your form is, like I said I did not test this.

dEcade

Edited by dEcade, 21 July 2005 - 06:01 PM.


#3 Chaos King

    Senior Programmer

  • P2L Staff
  • PipPipPip
  • 676 posts
  • Gender:Male
  • Location:Florida

Posted 22 July 2005 - 12:00 PM

I dont think that is possible with an email address anyways... Due to security issues. There is no point anyways of doing it because they are already at the site, why check their email to fill out a form? :D

But thats just my opinion...

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 22 July 2005 - 12:41 PM

You could possibly send a form in an e-mail, but theres 2 things you need to remember.
1. Will the client disable the form for security risks
2. Will the owner of the e-mail address have html enabled e-mails, or plain text only?

Other then that, just add "http://yoursite.com" as the action, and it could possible work.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users