Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 40
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
 
 
Register now for full access!
Old 10-08-2009, 05:44 PM Re: can you do multiple actions in one form
Brian07002's Avatar
Defies a Status

Posts: 2,138
Name: ...
Location: ...
Trades: 0
yeah, with php it can be done

Ex:

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

Please login or register to view this content. Registration is FREE

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

Posts: 41,516
Name: Chris Hirst
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-15-2009, 06: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

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Clarence_82 is offline
Reply With Quote
View Public Profile
 
Old 10-15-2009, 06: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, 07: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!
__________________

Please login or register to view this content. Registration is FREE
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.23635 seconds with 12 queries