Jump to content

bunder5

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Posts posted by bunder5

  1. I want to do simple client side validation but I don't know Javascript.  Can someone point me to an easy example on how to implement or post something here?

     

    QuickForm2 is a package from Pear.  I don't know how much Javascript I would actually need to implement client side validation for QuickForm2 but I think it's noteworthy to whoever would like to help me out that my knowledge is basic at best.  Not interested in using anything else either right now. 

  2. Stupid question but why would it need the port contained inside the URL for redirection later on?

     

     

        /* The servername and serverport tells PayPal where the buyer
        should be directed back to after authorizing payment.
        In this case, its the local webserver that is running this script
        Using the servername and serverport, the return URL is the first
        portion of the URL that buyers will return to after authorizing payment */
        $serverName = $_SERVER['SERVER_NAME'];
        $serverPort = $_SERVER['SERVER_PORT'];
        $url=dirname('http://'.$serverName.':'.$serverPort.$_SERVER['REQUEST_URI']);

  3. Is there any tool or feature that will show me which styles are being applied to my HTML?  My CSS skills are poor and sometimes I am not getting expected results whether it be due to inheritance or what not.

     

  4. Disaster averted, I forgot an apostrophe at the end of my input class name. 

     

    Google Chrome was not sending the W3C validator the new source code on a form resubmission.  I actually can't even view the code when after I submit a form onto itself.  I get an error that says.  I can do it in Firefox and IE but I'd rather work out of Chrome if I can find a fix for this. 

     

    Confirm Form Resubmission

    This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed. Press Reload to resend that data and display this page.

  5. I don't get the logic behind the construct.  I can't ever see myself using this because it doesn't make sense when I code it. 

     

    I understand isset($var) and why I should use it sometimes to avoid undefined messages.

     

    But with empty() it makes more sense to always test the variable directly because if the value is NULL, 0, '', or false then it evaluates as TRUE.  Is there any situation where empty should be used always?

     

     

  6. Thanks for all the replies, I've been writing something for myself so it suits my needs and also for the learning.

     

    All my class variables are private.  I am only letting values be set through the constructor, am I okay to not create accessor functions?

     

     

      private $css_class;	// css style for the form (defaults to "user_form")
      private $action;	// where form is submitted to 
      private $legend;	// legend text value (defaults to blank string)
      private $method;	// method (defaults to post)
      private $html;	// html code for the form

  7. Is it worthwhile to create an object to generate my HTML forms? 

     

    Starting out it would appear to be worthwhile but I'm not sure how things might change later down the line when I'm doing more with my forms and introducing javascript to it.  It's a bunch of coding to change all my forms now so I wanted to hear some input before I started.  Would this be just a complete waste of server side processing?

     

    TIA!  8)

×
×
  • 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.