Reply
can you do multiple actions in one form
Old 10-08-2009, 04:25 PM can you do multiple actions in one form
ericson3000's Avatar
Experienced Talker

Posts: 33
Name: Bob Davis
Location: Los Angeles, CA
Trades: 0
For instance:

<FORM NAME="signup" ACTION="discountsubmit.html", ACTION="whatever.html?id=bob" METHOD=POST
onSubmit="return verifyEmail(signup.Email.value)">
</FORM>


I know this is incorrect, but the idea is to do the two actions. I would prefer if the second action listed would be silent.

Thanks.
ericson3000 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-08-2009, 04:44 PM Re: can you do multiple actions in one form
Brian07002's Avatar
Defies a Status

Posts: 1,824
Name: ...
Location: ...
Trades: 0
yeah, with php it can be done

Ex:

Code:
$redirect_url = "Location: yourdomain.com$_SERVER['query_string']";
header($redirect_url)

Last edited by Brian07002; 10-08-2009 at 04:46 PM..
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 10-09-2009, 05:42 AM Re: can you do multiple actions in one form
chrishirst's Avatar
Super Moderator

Posts: 26,557
Location: Blackpool. UK
Trades: 0
Quote:
can you do multiple actions in one form
No!

You would have to script the actions using server side code.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-15-2009, 05:06 PM Re: can you do multiple actions in one form
Clarence_82's Avatar
Skilled Talker

Posts: 90
Name: Clarence
Trades: 0
It would definitely work the best if you did both actions on the following page like Tharaka suggested. You could even have it run one action then redirect to another page where it runs that action too. Either way, it should be pretty easy to accomplish.
__________________
-Clarence Cowan
Pole Pad Solution | Dallas Electrician
Clarence_82 is offline
Reply With Quote
View Public Profile
 
Old 10-15-2009, 05:48 PM Re: can you do multiple actions in one form
Novice Talker

Posts: 11
Trades: 0
Quote:
Originally Posted by ericson3000 View Post
For instance:

<FORM NAME="signup" ACTION="discountsubmit.html", ACTION="whatever.html?id=bob" METHOD=POST
onSubmit="return verifyEmail(signup.Email.value)">
</FORM>


I know this is incorrect, but the idea is to do the two actions. I would prefer if the second action listed would be silent.

Thanks.
sorry this is not possible. You cant place 2 action in a form but our guys are 100% correct that this can be done using php or asp.

PHP:
<?
header("location: discountsubmit.html");
?>

ASP :
<%
Response.Redirect "discountsubmit.html"
%>
chieina is offline
Reply With Quote
View Public Profile
 
Old 10-25-2009, 06:21 PM Re: can you do multiple actions in one form
Novice Talker

Posts: 7
Trades: 0
I really don't see the need to execute two separate PHP files, just include the second PHP file to where the action is set to. Problem solved!
__________________
Michigan Web Design
brpcraig is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to can you do multiple actions in one form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10383 seconds with 13 queries