| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > Concatenating field values before form submit |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Spare Parts
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,287
|
Concatenating field values before form submit
I am doing a payment gateway and I need to concatenate the month and year from two seperate dropdowns to one variable before submit. $EXPDATE = $MONTH.$YEAR; I guess is javascripty but I don't know any? Or whether a javascript variable if constructed is recognised and passed by the form. Thanks if you can help. |
|
|
|
|
|
#4 (permalink) |
|
Spare Parts
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,287
|
I don't know how I would do that without a second page where the concatention is done but requires to submit again. I can work around this I have worked out by taking card details on page one, submit goes to page two to collect the address details and I can concatenate there before final submit to gateway. Or I can simply do 'View And Confirm Details Are Correct' page. Yes that works. But if you can briefly explain the method you both mean perhaps you can fill a hole in my knowledge if not too much typing involved? |
|
![]() |