Jump to content

Recommended Posts

Posted

I'm having trouble capturing the values from a form. I need to both; echo and send emails.

Posted

<?php
$senders_email = $_GET['senders_email'];
$email='';
$n='';

if (!isset($_GET['submit'])) { $output_form = true; }
/* .....................................................................FORM STARTS HERE */
if ($output_form = true){

?>

PartyTime.... Complete the form to send invitations.



My email address:



Type a name and email for each invitation to send.


Email


<?php
}
/* ......................................................................................FORM ENDS */
?><?php

/* === this is where I'm lost. I can not capture the values, whether to echo or mail. === */
if ((!empty($senders_email)) && (isset($_GET['submit']))){

for ($n=1; $n<=10; $n++) {
$email. $n=$_GET["email$n"];
$temp='email$n';
echo $$temp. '
';
}
}
?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...