3
356cabbie

  • Aug 31, 2022
  • Joined Jun 7, 2005
  • Figures I find something that solves my first problem right after I post! So now the alert opens on the "no" selection of the radio button. In that dialog box, I would like to build an "if and then" statement. Yes opens another html page, no captures the "no" value and close the dialog box.
    Here is the script I found and inserted.

    <div class="form-check">
                    <div class="col-3 pr-0 text-float-right">
                        <input class="form-check-input" type="radio" name="HLdefault" id="HL_defaultno"
                            onclick="showMessage()" value="hl2">
    
                    <label class="form-check-label font-weight-bold text-danger" for="HL_defaultno">No</label>
                </div>
                <script>
                function showMessage() {
                    // Example displaying an alert
                    alert("Would you like to create an Issue?")
                }
                </script>
            </div>
    
    • Very new to php, but like the challenge. I have a Yes & No radio button config. I would like a dialog box to open if the "no" radio button is selected. Below is the "No"" radio button code. I have searched for quite awhile and have some examples, but can't get them to function.

       <div class="form-check">
                      <div class="col-3 pr-0 text-float-right">
                          <input class="form-check-input" type="radio" name="HLdefault" id="HL_defaultno" value="hl2">
                             
      <label class="form-check-label font-weight-bold text-danger" for="HL_defaultno">No</label> </div> </div>

      Any help would be greatly appreciated!

      • Brand new to php, but having a ball with it. I needed a login system for my site and found one that seemed pretty straight forward (Jpmaster77). I thought it would be easier to use existing code and build off that as I got better. So far so good.

        My problem is I can't get email to send. So I built a small email app separate from his code and it worked fine, proving that my ISP/Sever does send email.

        The code looks fine in the "login system"

        function sendNewPass($user, $email, $pass){
        $from = "From: ".EMAIL_FROM_NAME." <".EMAIL_FROM_ADDR.">";
        $subject = "Cyberwerkstatt's Site - Your new password";
        $body = $user.",\n\n"
        ."We've generated a new password for you at your "
        ."request, you can use this new password with your "
        ."username to log in to Cyberwerkstatt's Site.\n\n"
        ."Username: ".$user."\n"
        ."New Password: ".$pass."\n\n"
        ."It is recommended that you change your password "
        ."to something that is easier to remember, which "
        ."can be done by going to the My Account page "
        ."after signing in.\n\n"
        ."-Cyberwerkstatt's Site";

          return mail($email,$subject,$body,$from);

        The entire "Login system" is built with classes and everything "includes" the "session" class. I don't see anything out of order there.

        So any help would be appreciated and I guess I am getting my first taste of reverse engineering!

        Thanks in advance

        356cabbie

        • Roger thanks for the reply. Your suggestion is what I was looking for all along. However most examples I found wanted to keep it simple so that understanding was easy. Which it did. I just started my php learning curve yesterday.

          Could you provide a sample script of your method and I can then tailor to meet my needs. That would be helpful if possible.

          Thanks for the reply and hopefully 2007 will be better. just remember that most of the time the next day isn't as bad as the last!

          356cabbie ;-)

          • Just started today with php, integrating it into my site. I found a email script and actually got it to work! If the user fails to fill in one of the data sets and trys to submit, an error msg pops up telling them what to fill in.

            The script uses "die" and then the "message". I would like to change the "die" to "go get" a specific page from my site?

            I'll keeping looking for the info, but if you know, I would sure be thankful!

            356Cabbie 🙂

            • First time here, same format as FlashKit, so it has to be good.

              I purchase a front end (guard dog) for my site, but a little unhappy with the support (its not all their fault, since I don't know what the heck I am doing.).

              I am reading the "bible" for php for starters and later for reference.

              Question What do most view, edit and write php with? Notepad?

              As with flash, are there any tutorials with php?

              Thanks for any help and I'll keep search this site for help.
              😃