The form tag’s action attribute

Is it possible to call more than 1 php script with a web url here?

Something like:

<form method="post" action="http://www.domain.com/php/script1.php5","http://www.domain.com/php/script2.php5","http://www.domain.com/php/script3.php5>

Thanks!

i cant think of a way without multiple pages being opened

hmm.

Just include/require the 2nd php script at the top of the php file the form is posted to, it will have access to the same $_POST/$_GET variables.

Just include/require the 2nd php script at the top of the php file the form is posted to, it will have access to the same $_POST/$_GET variables.

Or just do the global search in phpmyadmin

Can I include every other script I need to as well as the 2nd one?
edit: Seems like I’d be able to…

i cant think of a way without multiple pages being opened

hmm.

That’s what I thought, but thats just not an option.

Or just post it to a single file that includes all the files you want.. roundabout way to do it, but lets you keep your files seperate if required.

My immediate thought would be a .zip, and I know that can’t be right. What extension? Do I need a certain program to save as that extension?

If you want it submitted to these files:

script1.php5
script2.php5
script3.php5

Make a file called whatever.php with this in it:

<?
include "script1.php5";
include "script2.php5";
include "script3.php5";
?>

Then submit your forms to whatever.php

If you want it submitted to these files:

script1.php5
script2.php5
script3.php5

Make a file called whatever.php with this in it:

<?
include "script1.php5";
include "script2.php5";
include "script3.php5";
?>

Then submit your forms to whatever.php

Hmmm, I’ll try that. I just watched killerphp’s php include tut vid and I’ve been wanting to try it.

Thanks.

edit: no "php" after the first "?" ?

Some installs of php don’t require the "php" after the <?

You should be able to change the setting in the php.ini file, but be careful in there don’t change any settings unless you know what you are doing.

Some installs of php don’t require the "php" after the <?

You should be able to change the setting in the php.ini file, but be careful in there don’t change any settings unless you know what you are doing.

I don’t. I’m a PHP nub right now. I’m assuming the latest version of php doesn’t require it?

It’s not a version thing, its a setting that is either turned on or off on the server.

Short tags or short open tags.

If you create a somename.php file and put <?php phpinfo(); ?> inside of it, visiting that page will give you all sorts of useful info about the server config.