|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Please help! How to pass variables with a form???
I have got something like this:
<form action="contentman_editconfirm.cfm?id=#url.carid#" method="post" name="Form" target="_blank"> the #url.carid# was passed from the previous page, I just need to pass it again with the form (when the submit button is hit) to the contentman_editconfirm.cfm page, but it just won't pass!! any ideas? thanks guys |
|
#2
|
|||
|
|||
|
I don't understand what you mean by "it won't pass". If you passed a URL variable called carID in the form's URL using the POST method, then you should be able to pass it again as #url.carID# from the target page. Do a cfdump of the URL scope to confirm that the variable is there.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
for some reason it isn't there, i can't think why...
|
|
#4
|
|||
|
|||
|
Well do you see it in the URL? If your form is posting to "contentman_editconfirm.cfm?id=#url.carid#" then the URL should say something like "contentman_editconfirm.cfm?id=4"
|
|
#5
|
|||
|
|||
|
no is just "contentman_editconfirm.cfm?id=
|
|
#6
|
|||
|
|||
|
So you're not actually passing anything in the form post's URL then. That's the problem I think.
|
|
#7
|
|||
|
|||
|
Quote:
did you forget to put <cfoutput> before that so CF will parse the #var# ? |
|
#8
|
|||
|
|||
|
^^thanks man i think thats it
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Please help! How to pass variables with a form??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|