To pass the values back to your PHP, you'll have to have your
javascript
write the values to hidden form fields, and then grab the
data from the form
fields server-side when the form posts.
Alternatively, you could use AJAX for this as well.
-Darrel
--
=================================================================
Win prizes searching google:
http://www.blingo.com/friends?ref=hM72-GU3FWzMFnTqhv-2GE1FNtA
"The_FedEx_Guy" <webforumsuser@macromedia.com> wrote in
message
news:g0bkng$njh$1@forums.macromedia.com...
> The code for the Design Submit: But how do I pass it on
to Card_Save.php?
>
> function SubmitDesign() {
> // Card_Design.InfoLeft1.value=20;
>
Card_Design.InfoLeft1.value=document.all.InfoDiv1.style.pixelLeft;
>
Card_Design.InfoTop1.value=document.all.InfoDiv1.style.pixelTop;
>
Card_Design.InfoFont1.value=document.all.InfoDiv1.style.fontFamily;
>
Card_Design.InfoSize1.value=document.all.InfoDiv1.style.fontSize;
> if(document.all.InfoDiv1.style.fontWeight=="bolder") {
> Card_Design.InfoBold1.value=1;
> } else {
> Card_Design.InfoBold1.value=0;
> }
> if(document.all.InfoDiv1.style.fontStyle=="italic") {
> Card_Design.InfoItalic1.value=1;
> } else {
> Card_Design.InfoItalic1.value=0;
> }
> if(document.all.InfoDiv1.style.display=="none") {
> Card_Design.InfoColor1.value="";
> } else {
>
Card_Design.InfoColor1.value=document.all.InfoDiv1.style.color;
> }
>
Card_Design.InfoLeft2.value=document.all.InfoDiv2.style.pixelLeft;
>
Card_Design.InfoTop2.value=document.all.InfoDiv2.style.pixelTop;
>
Card_Design.InfoFont2.value=document.all.InfoDiv2.style.fontFamily;
>
Card_Design.InfoSize2.value=document.all.InfoDiv2.style.fontSize;
> if(document.all.InfoDiv2.style.fontWeight=="bolder") {
> Card_Design.InfoBold2.value=1;
> } else {
> Card_Design.InfoBold2.value=0;
> }
> if(document.all.InfoDiv2.style.fontStyle=="italic") {
> Card_Design.InfoItalic2.value=1;
> } else {
> Card_Design.InfoItalic2.value=0;
> }
> if(document.all.InfoDiv2.style.display=="none") {
> Card_Design.InfoColor2.value="";
> } else {
>
Card_Design.InfoColor2.value=document.all.InfoDiv2.style.color;
> }
>
Card_Design.InfoLeft3.value=document.all.InfoDiv3.style.pixelLeft;
>
Card_Design.InfoTop3.value=document.all.InfoDiv3.style.pixelTop;
>
Card_Design.InfoFont3.value=document.all.InfoDiv3.style.fontFamily;
>
Card_Design.InfoSize3.value=document.all.InfoDiv3.style.fontSize;
> if(document.all.InfoDiv3.style.fontWeight=="bolder") {
> Card_Design.InfoBold3.value=1;
> } else {
> Card_Design.InfoBold3.value=0;
> }
> if(document.all.InfoDiv3.style.fontStyle=="italic") {
> Card_Design.InfoItalic3.value=1;
> } else {
> Card_Design.InfoItalic3.value=0;
> }
> if(document.all.InfoDiv3.style.display=="none") {
> Card_Design.InfoColor3.value="";
> } else {
>
Card_Design.InfoColor3.value=document.all.InfoDiv3.style.color;
> }
>
>
>
Card_Design.InfoLeft4.value=document.all.InfoDiv4.style.pixelLeft;
>
Card_Design.InfoTop4.value=document.all.InfoDiv4.style.pixelTop;
>
Card_Design.InfoFont4.value=document.all.InfoDiv4.style.fontFamily;
>
Card_Design.InfoSize4.value=document.all.InfoDiv4.style.fontSize;
>
>
Card_Design.InfoHeight4.value=document.all.InfoDiv4.style.lineHeight;
>
> if(document.all.InfoDiv4.style.fontWeight=="bolder") {
> Card_Design.InfoBold4.value=1;
> } else {
> Card_Design.InfoBold4.value=0;
> }
> if(document.all.InfoDiv4.style.fontStyle=="italic") {
> Card_Design.InfoItalic4.value=1;
> } else {
> Card_Design.InfoItalic4.value=0;
> }
> if(document.all.InfoDiv4.style.display=="none") {
> Card_Design.InfoColor4.value="";
> } else {
>
Card_Design.InfoColor4.value=document.all.InfoDiv4.style.color;
> }
>
>
Card_Design.InfoLeft5.value=document.all.InfoDiv5.style.pixelLeft;
>
Card_Design.InfoTop5.value=document.all.InfoDiv5.style.pixelTop;
>
Card_Design.InfoFont5.value=document.all.InfoDiv5.style.fontFamily;
>
Card_Design.InfoSize5.value=document.all.InfoDiv5.style.fontSize;
>
Card_Design.InfoHeight5.value=document.all.InfoDiv5.style.lineHeight;
>
> if(document.all.InfoDiv5.style.fontWeight=="bolder") {
> Card_Design.InfoBold5.value=1;
> } else {
> Card_Design.InfoBold5.value=0;
> }
> if(document.all.InfoDiv5.style.fontStyle=="italic") {
> Card_Design.InfoItalic5.value=1;
> } else {
> Card_Design.InfoItalic5.value=0;
> }
> if(document.all.InfoDiv5.style.display=="none") {
> Card_Design.InfoColor5.value="";
> } else {
>
Card_Design.InfoColor5.value=document.all.InfoDiv5.style.color;
> }
>
>
Card_Design.InfoLeft6.value=document.all.InfoDiv6.style.pixelLeft;
>
Card_Design.InfoTop6.value=document.all.InfoDiv6.style.pixelTop;
>
Card_Design.InfoFont6.value=document.all.InfoDiv6.style.fontFamily;
>
Card_Design.InfoSize6.value=document.all.InfoDiv6.style.fontSize;
>
> if(document.all.InfoDiv6.style.fontWeight=="bolder") {
> Card_Design.InfoBold6.value=1;
> } else {
> Card_Design.InfoBold6.value=0;
> }
> if(document.all.InfoDiv6.style.fontStyle=="italic") {
> Card_Design.InfoItalic6.value=1;
> } else {
> Card_Design.InfoItalic6.value=0;
> }
> if(document.all.InfoDiv6.style.display=="none") {
> Card_Design.InfoColor6.value="";
> } else {
>
Card_Design.InfoColor6.value=document.all.InfoDiv6.style.color;
> }
>
>
>
>
Card_Design.LogoShowornot.value=document.all.LogoDiv.style.display;
>
>
Card_Design.LogoOuterLeft.value=document.all.LogoDiv.style.pixelLeft;
>
Card_Design.LogoOuterTop.value=document.all.LogoDiv.style.pixelTop;
>
Card_Design.LogoOuterWidth.value=document.all.LogoDiv.style.pixelWidth;
>
Card_Design.LogoOuterHeight.value=document.all.LogoDiv.style.pixelHeight;
>
Card_Design.LogoInnerLeft.value=document.all.LogoContDiv.style.pixelLeft;
>
Card_Design.LogoInnerTop.value=document.all.LogoContDiv.style.pixelTop;
>
>
Card_Design.LogoInnerWidth.value=document.all.LogoContDiv.style.pixelWidth;
>
>
Card_Design.LogoInnerHeight.value=document.all.LogoContDiv.style.pixelHeight;
>
>
Card_Design.LogoTransparent.value=document.all.LogoDiv.filters.item("DXImageTr
> ansform.Microsoft.Alpha").Opacity;
>
>
Card_Design.LogoMirror.value=document.all.LogoDiv.filters.item("DXImageTransfo
> rm.Microsoft.BasicImage").Mirror;
>
>
Card_Design.LogoGrayScale.value=document.all.LogoDiv.filters.item("DXImageTran
> sform.Microsoft.BasicImage").GrayScale;
>
>
Card_Design.FaceShowornot.value=document.all.FaceDiv.style.display;
>
Card_Design.FaceOuterLeft.value=document.all.FaceDiv.style.pixelLeft;
>
Card_Design.FaceOuterTop.value=document.all.FaceDiv.style.pixelTop;
>
Card_Design.FaceOuterWidth.value=document.all.FaceDiv.style.pixelWidth;
>
Card_Design.FaceOuterHeight.value=document.all.FaceDiv.style.pixelHeight;
>
Card_Design.FaceInnerLeft.value=document.all.FaceContDiv.style.pixelLeft;
>
Card_Design.FaceInnerTop.value=document.all.FaceContDiv.style.pixelTop;
>
>
Card_Design.FaceInnerWidth.value=document.all.FaceContDiv.style.pixelWidth;
>
>
Card_Design.FaceInnerHeight.value=document.all.FaceContDiv.style.pixelHeight;
>
>
Card_Design.FaceTransparent.value=document.all.FaceDiv.filters.item("DXImageTr
> ansform.Microsoft.Alpha").Opacity;
>
>
Card_Design.FaceMirror.value=document.all.FaceDiv.filters.item("DXImageTransfo
> rm.Microsoft.BasicImage").Mirror;
>
>
Card_Design.FaceGrayScale.value=document.all.FaceDiv.filters.item("DXImageTran
> sform.Microsoft.BasicImage").GrayScale;
> }
>