Mobile Phone | Freelance | 2008 NFL Draft Picks | Loan | Online Dating
Possible to submit a form which submits another? [Archive] - ZGeek

PDA

View Full Version : Possible to submit a form which submits another?


cyberwired
09-11-2005, 06:40 AM
Question for a collegue of mine, what we have is a finance company who has an application form on their website.
They want it so when people submit the form it signs them up to their newsletter with a tick box.
I want to use www.ezinedirector.com for the newsletter sending but to use that they have a submit form themselves.
HTML being:

<form action="http://sub.ezinedirector.net/index.cfm" method="post" target="_blank">
<input name="fuseaction" style="vertical-align: middle;" type="radio" value="r" /> remove<br />
<input checked="checked" name="fuseaction" style="vertical-align: middle;" type="radio" value="s" /> subscribe<br /><br />

<input checked="checked" name="EzineID" style="vertical-align: middle;" type="checkbox" value="964690663" />
<span style="font-family: Verdana, Arial, Helvetica, sans-serif;">
Test
</span><br />

<div style="float: left;">
<input maxlength="255" name="email" onFocus="value=''" style="width: 10em;" type="text" value="Enter Email" /><br />


<input maxlength="50" name="firstname" onFocus="value=''" style="width: 10em;" type="text" value="First Name" /><br />

</div>
<div style="float: left;">

</div>

<br clear="all" /><br />

<input name="submit" type="submit" value=" finish " /> <span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.8em;">Email List Management by <a href="https://www.ezinedirector.com">Ezine Director</a></span>
</form>


Is it possible that when you submit the app form it also does a post to http://sub.ezinedirector.net/index.cfm giving the correct details?
Or is there another way I can do this that wont require filling in multiple forms?

Spingo
09-11-2005, 12:01 PM
One method springs immediately to my mind.

Your form > PHP script which does processing (does not spit out HTML) and then redirects to the ezine script with args in the URL > ezine script.

Trouble is, you end up at the ezine confirmation page, not yours. If this is desirable behaviour, lemme know and I'll go into more detail.

Otherwise, I'll try to think of a better solution...

cyberwired
09-11-2005, 02:18 PM
interesting idea
I'm not sure if the ezine script requires a post to it though
basically the first form just emails the application, but need to be able to do a post to ezine with the details
ending up at the ezine confirmation page might not be too much of a problem, I think its customizable...