You are here: Re: form to form transfer? « PHP « IT news, forums, messages
Re: form to form transfer?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация