Runescape Community: A Quick Php Question - Runescape Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

A Quick Php Question didn't know how to google it

#1 User is offline   hiiiplayrunescape

  • Member
  • Icon
  • Group: Member
  • Posts: 372
  • Joined: 17-June 08
  • RS Name:i woeftie i
  • RS Status:Member
  • Clan:High definition

Posted 03 November 2009 - 02:25 PM





so i have this html form



when it is submited i want it to do: for example:

file1.php (make a log)

file2.php (e-mail me)

file3.php (e-mail the other persone)



normally you have this

<form action="SOMEFILENAME.php" method="post">

I want to know if I can just put in action 3 times?

so: <form action="file1.php" action="file2.php" action="file3.php" method="post">



i know throwing all the php files in one would do the job, but i don't want that for a couple of reasons.


Posted Image
0

#2 User is offline   Webhostbudd

  • Computing CL
  • Icon
  • Group: Member
  • Posts: 1400
  • Joined: 25-August 05
  • RS Name:Webhostbudd
  • RS Status:Retired

Posted 03 November 2009 - 06:02 PM

Well, the only feasible way is to use a single php file, why would you need to use more than one? If anything just use includes or write good methods.
Go brick a router!!

RS Name: Webhostbudd
Created: 12/07/2004
Last Active: 9/22/07
May be back sometime.
Level 106 for life.
Want to explore my house, Click Here for an interactive tour.

Zybez FTW!
0

#3 User is offline   zebediah49

  • ex-Member
  • Icon
  • View blog
  • Group: Moderator
  • Posts: 4221
  • Joined: 12-December 04
  • RS Name:Zebediah49
  • RS Status:Member

Posted 03 November 2009 - 08:12 PM

1. no.

If you're trying to have it do different things based on the button pressed, you use one PHP file, and switch what happens based on a VAR based on what button was pressed.

If you're trying to have it do them all, why not just do it all in one php file?

Hell, make each thing you do a function, include() that file, and then call whatever ones are needed.

Or, for the horrible solution, have file1 do its thing and then forward to file2, then to file3.. but really, don't do that.
Posted Image
1

#4 User is offline   hiiiplayrunescape

  • Member
  • Icon
  • Group: Member
  • Posts: 372
  • Joined: 17-June 08
  • RS Name:i woeftie i
  • RS Status:Member
  • Clan:High definition

Posted 04 November 2009 - 02:53 PM

k thats web & zeb :-)

topic closed i guess ^^


Posted Image
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Forums Directory