|
Posted by Pro N00b on 10/31/05 20:35
moonie wrote:
> So I'm integrating a newsletter on my website.
> Newlsetter means when someone wants to sign up, they have to input
> their first, last, and email in the fields.
>
> Well, when people register, I'd like to have a 'check': "subscribe to
> newsletter" that will automatically take the previous fields (fname,
> lname and email) and throw it into the newsletter fields and submit it.
>
> (i dont think submitting into the database will work, im pretty sure
> that the script (PHP LIST[awesome script]) needs to be processed so it
> needs to be submitted in the form.
>
> Anyway to do this in the background so the user doesnt have to submit
> information twice?
>
> Thanks.
You could use sessions?
Another option is (this code must be inside your form):
<?php
foreach($_POST as $name => $value) {
echo '<input type="hidden" name="'.htmlentities($name).'"
value="'.htmlentities($value).'" />';
}
Navigation:
[Reply to this message]
|