Jump to content

Recommended Posts

The following is part of a file and I am wondering what the form.sb_buynow_price.value! means.  Is it referincing to another file, or is that a command to make something work?

It is a buy now feature in an auction program and the buy now was working, and I paid someone to do some upgrades, and now the buy now feature appears when listing an item, but doesn't appear to th buyer to make a purchase. 

I am thinking the stuff lower down that is referenced out (*/) is because I didn't want paypal to be a condition, but an option, so it was changed.

Thanks,

Ken

if(form.sb_buynow_price.value!='')
                {
                        if(isNaN(form.sb_buynow_price.value) || form.sb_buynow_price.value <= 0 )
                        {
                                alert("Please specify positive nonzero value for Buy Now Price");
                                form.sb_buynow_price.focus();
                                return false;
                        }
                /*        if( form.paypal_id.value=='')                ------disabled
                        {
                                alert("You must specify Paypal Id for buy now option to work");
                                form.paypal_id.focus();
                                return false;
                        }
                        if (!emailCheck (form.paypal_id.value) )
                        {
                                form.paypal_id.focus();
                                return (false);
                        }*/
                }
Link to comment
https://forums.phpfreaks.com/topic/14681-what-does-this-line-mean/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.