|
View previous topic
::
View next topic
|
| Author |
Message |
ebg
Joined: 12 Oct 2004
Posts: 50
|
Posted: Sun Feb 26, 2006 3:20 am
Post subject: HTML Forms
|
|
|
When a user hits submit on a php form on my site, is it
possible to take the values from the form and submit them to another
form on another Url without the user who submitted the form on my site
knowing?
Essentially ones the user on my site hits submit they would get a thank
you page but on the back end I want to take the values from the form
and submit them to a form on another url on another site.
My reason for this is that I run several directories. I want to allow
users to submit at one and also choose to get a submission in the other
directories I run. But I do not want them to see all the back end
processing to submit to the other directories I run I just want to show
them a thank you page and then have the submission happen to the other
directories on the back end.
Anybody have any idea on which language or strategy I should use to accomplish this? I need to contact a programmer and have no idea if they will be telling me right so I want to get advice first.
Thank you. |
|
| Back to top |
|
 |
Kates7
Joined: 12 Mar 2006
Posts: 4
|
Posted: Sun Mar 12, 2006 7:33 pm
Post subject:
|
|
|
How about running all your directories off one database?
So when they submit it's all centralized.
Then all you have to do is pull data (as includes or whatever) from one place to service multiple sites. _________________ For spiritual understanding Redditch Spiritualist Church. |
|
| Back to top |
|
 |
mojojuju
Joined: 22 Mar 2006
Posts: 2
|
Posted: Wed Mar 22, 2006 7:29 pm
Post subject: Re: HTML Forms
|
|
|
| ebg wrote: | When a user hits submit on a php form on my site, is it
possible to take the values from the form and submit them to another
form on another Url without the user who submitted the form on my site
knowing?
Essentially ones the user on my site hits submit they would get a thank
you page but on the back end I want to take the values from the form
and submit them to a form on another url on another site. |
Put an iframe in your thank you page that will send the post data to the other script like this:
| Code: |
<iframe width=0 height=0 src="http://www.othersite/othersctipt.php?parameter1=value¶meter2=value2" TITLE="title"\>some text
\<\/iframe\>
|
Once the user hits your thank you page, the location of the other script is opened in an invisible iframe and your data is passed on to that script.
There's better ways to do this, but your post made it sound like you weren't looking for a less messy way. _________________ Download the list of all Clickbank Products and payout stats, gravity, etc. CB-Export |
|
| Back to top |
|
 |
Charlie
Joined: 22 Aug 2003
Posts: 3305
Location: UK
|
Posted: Thu Mar 23, 2006 1:32 pm
Post subject: Re: HTML Forms
|
|
|
Another way is to use an "onclick" for the submit button of the form, but either way, you'll still have to use JavaScript (in the client browser) to extract the values from the form object.
It is possible to run a PHP (say) script from JavaScript as long as the script returns valid JS to the browser.
If your programmer doesn't know how, ask him to Google for "Will Bontrager" and "javascript". There's some very handy stuff to be found.
Cheers,
Charlie. _________________ "Before I speak, I have something important to say."
- Groucho Marx |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|