submit page ( 7 Views )
-
Ok here is my issue:
i have my cold fusion page doing multiple tasks depending on what is displayed. the form has an action of page1. if the if certain sumbit buttons display at the bottom of the page, i need that submit button to redirect the submit to page2.
because the form has an action of page1, can i redirect to page2 using the submit button?
thanks
dan
(ferhan, Kazakhstan)
Hi dfred,
(long time no see)
you can change your action in javascript, but you need to remove it from the form and get rid of the submit button.
for example:
<form>
.......
<input type='button' value='submit' onclick='sendIt(this.form)'>
</form>
function sendIt(formObj)
{
if (someVariableIsTrue)
formObj.action = 'page1'
else
formObj.action = 'page2'
formObj.submit()
}
Vinny
(berkay, Israel)
Assuming you are uisng CF to determine what submit button to display, you can use the same logic to determine where to redirect the pages using <CFLOCATION URL="http://www.sitepoint.com">
(FAHRİ, Central African Republic)
Related Topics ... (or search in 1.720.883 topics !)
how do i carry form data foward page to page till submit button is clicked? (8) submit two picture at page 1 and show at page 3 (2) submit to another page (7) going to a new page on submit (10) refreshing page on submit (9) submit page with cdonts (3) using two submit buttons in one page (5) reload page on submit (11) how do you submit text from a page using ajax? (6)
copyright © 2007-2031 Pfodere.COM ( 5 Pfoyihuee Online )
|