Jump to content


Photo

Post to two diferenet files


  • Please log in to reply
4 replies to this topic

#1 belick

belick
  • Members
  • PipPipPip
  • Advanced Member
  • 60 posts

Posted 18 May 2006 - 06:06 PM

I know that it will be hard to find an answer for that but its worth the try...

I am looking to submit one form to two deferent location.

like:

<form name="form1" method="post" action="post_file.php">
<input type="text" name="textfield">
<input type="submit" name="Submit" value="Submit">
</form>

the post_file.php need to post it again to two places...

does anyone know how to do that?

thanks
<?="C"+"Y"+"T"+"N"+"E"+"T"+"."+"C"+"O"+"M";?>
Cytnet.com :-)

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 18 May 2006 - 06:27 PM

I'm not sure I understand the question. You need to put the results in 2 different databases or you need to send the results onto 2 other processing files? I guess my question is why can't you put all processing of the form into one file? And if you can't, you could always process the first file and then use a header() call to send the process onto the second file.

Info: PHP Manual


#3 belick

belick
  • Members
  • PipPipPip
  • Advanced Member
  • 60 posts

Posted 18 May 2006 - 07:40 PM

ok, I have one form on my site that the same information need to be sent to two processing files. one its me and the other its another comapny.
<?="C"+"Y"+"T"+"N"+"E"+"T"+"."+"C"+"O"+"M";?>
Cytnet.com :-)

#4 belick

belick
  • Members
  • PipPipPip
  • Advanced Member
  • 60 posts

Posted 23 May 2006 - 09:32 PM

Any help??
<?="C"+"Y"+"T"+"N"+"E"+"T"+"."+"C"+"O"+"M";?>
Cytnet.com :-)

#5 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 23 May 2006 - 10:51 PM

you might find your answer in this thread:

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=94002\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=94002[/a]

hope it helps!
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users