Jump to content
Killersites Forums

repetitive form fields


dms
 Share

Recommended Posts


<?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. '
';
}
}
?>
Link to comment
Share on other sites

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...
 Share

×
×
  • Create New...