Guess what James, I think I have not done it right.
When I submit the form, it returns the following:
Photo manipulation: Add object or person
Photo manipulation: Cropping
Photo manipulation: Photo makeover
Photo manipulation: Replacing background
Photo manipulation: Remove object or person
Photo manipulation: Colour photo to sepia
Photo manipulation: Convert colour photo to black and white
Photo manipulation: Convert black and white to colour
Photo restoration: Add colour to black & white photos
Photo restoration: Minor repair
Photo restoration: Major repair
Photo retouching: Change eye colour
Photo retouching: Change lip colour
Photo retouching: Brighten teeth
Photo retouching: Brighten eyes
Photo retouching: Nose correction
Photo retouching: Add shine
Photo retouching: Remove pores
Photo retouching: Remove scars
Photo retouching: Remove wrinkles
Photo retouching: Remove facial lines
Photo retouching: Improve complexion
Photo retouching: Colour correction
Photo retouching: Face slimming
Photo retouching: Skin lightening
Photo retouching: Colour photo to sepia
Photo retouching: From colour photo to black and white
Photo retouching: From black and white to colour
Special effects: Insert background
Special effects: Cartoonise your photo
Special effects: Robotize your photo
Special effects: Panorama photo effects
Special effects: Spot light
Website package offer: Online portfolio website
Website package offer: Online model website
Website package offer: Online wedding album website
Website package offer: Online children album website
Website package offer: Online family album website
On the header of the html page I have placed the following:
<SCRIPT language="javascript" type="text/javascript">
function addInput(obj,_typ,_nam,_val){
newInput=document.createElement('input');
newInput.setAttribute("type",_typ);
newInput.setAttribute("name",_nam);
newInput.setAttribute("value",_val);
obj.appendChild(newInput);
}
function newPPoption(_form,optname,optvalue){
_allInputs=document.getElementsByTagName('input');
PPoptions=[];
PPregex=/^on\d+$/i;
for(i=0;i<_allInputs.length;i++){
if(_allInputs[i].type=='hidden' && PPregex.test(_allInputs[i].name)) {PPoptions.push(_allInputs[i]);}
}
PPopSort=[];
PPopSort=PPoptions.sort();
_max=PPopSort.length>0?parseInt(PPopSort[PPopSort.length-1].name.match(/\d+/),10):-1;
addInput(_form,"hidden","on"+(_max+1),optname);
addInput(_form,"hidden","os"+(_max+1),optvalue);
}
</SCRIPT>
and right after the form I have placed the following:
<SCRIPT language="javascript" type="text/javascript">
newPPoption(document.forms["paypal"],"Photo manipulation","Add object or person");
newPPoption(document.forms["paypal"],"Photo manipulation","Cropping");
newPPoption(document.forms["paypal"],"Photo manipulation","Photo makeover");
newPPoption(document.forms["paypal"],"Photo manipulation","Replacing background");
newPPoption(document.forms["paypal"],"Photo manipulation","Remove object or person");
newPPoption(document.forms["paypal"],"Photo manipulation","Colour photo to sepia");
newPPoption(document.forms["paypal"],"Photo manipulation","Convert colour photo to black and white");
newPPoption(document.forms["paypal"],"Photo manipulation","Convert black and white to colour");
newPPoption(document.forms["paypal"],"Photo restoration","Add colour to black & white photos");
newPPoption(document.forms["paypal"],"Photo restoration","Minor repair");
newPPoption(document.forms["paypal"],"Photo restoration","Major repair");
newPPoption(document.forms["paypal"],"Photo retouching","Change eye colour");
newPPoption(document.forms["paypal"],"Photo retouching","Change lip colour");
newPPoption(document.forms["paypal"],"Photo retouching","Brighten teeth");
newPPoption(document.forms["paypal"],"Photo retouching","Brighten eyes");
newPPoption(document.forms["paypal"],"Photo retouching","Nose correction");
newPPoption(document.forms["paypal"],"Photo retouching","Add shine");
newPPoption(document.forms["paypal"],"Photo retouching","Remove pores");
newPPoption(document.forms["paypal"],"Photo retouching","Remove scars");
newPPoption(document.forms["paypal"],"Photo retouching","Remove wrinkles");
newPPoption(document.forms["paypal"],"Photo retouching","Remove facial lines");
newPPoption(document.forms["paypal"],"Photo retouching","Improve complexion");
newPPoption(document.forms["paypal"],"Photo retouching","Colour correction");
newPPoption(document.forms["paypal"],"Photo retouching","Face slimming");
newPPoption(document.forms["paypal"],"Photo retouching","Skin lightening");
newPPoption(document.forms["paypal"],"Photo retouching","Colour photo to sepia");
newPPoption(document.forms["paypal"],"Photo retouching","From colour photo to black and white");
newPPoption(document.forms["paypal"],"Photo retouching","From black and white to colour");
newPPoption(document.forms["paypal"],"Special effects","Insert background");
newPPoption(document.forms["paypal"],"Special effects","Cartoonise your photo");
newPPoption(document.forms["paypal"],"Special effects","Robotize your photo");
newPPoption(document.forms["paypal"],"Special effects","Panorama photo effects");
newPPoption(document.forms["paypal"],"Special effects","Spot light ");
newPPoption(document.forms["paypal"],"Website package offer","Online portfolio website");
newPPoption(document.forms["paypal"],"Website package offer","Online model website");
newPPoption(document.forms["paypal"],"Website package offer","Online wedding album website");
newPPoption(document.forms["paypal"],"Website package offer","Online children album website");
newPPoption(document.forms["paypal"],"Website package offer","Online family album website");
</SCRIPT>
Why is it showing everything? Atleast its better than showing nothing heh heh.
Kind Regards,
Rafi