Any web developers / coding geeks on the forum?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Error404
    Super Moderator
    • Mar 2007
    • 19789
    • Country: United Kingdom

    #1

    Any web developers / coding geeks on the forum?

    Need some help / advice if there's anyone out there?
    I've reached the limits of my understanding!

    Cheers
    Alex
    Panthero Coupé quattro 20vt
    Indigo ABY coupé
    Imola B6 S4 Avant
  • bluequattro
    S2Forum Fiend
    • Nov 2004
    • 2960
    • Country: United Kingdom

    #2
    why, whatcha trying do?

    Comment

    • Error404
      Super Moderator
      • Mar 2007
      • 19789
      • Country: United Kingdom

      #3
      My knowledge is very limited, I know basic HTML & a bit of PHP, but I need help & advice for a CGI script so I can work around the inability to have multiple actions in a form tag. So i can have a user input on a contact form perform two actions, to submit ghe entry to a remote mailing list as well as send an email to my inbox
      Didn't want to use Java as it won't work if its unavailable / disabled... so i need a univeral solution

      Cheers
      Alex
      Panthero Coupé quattro 20vt
      Indigo ABY coupé
      Imola B6 S4 Avant

      Comment

      • bluequattro
        S2Forum Fiend
        • Nov 2004
        • 2960
        • Country: United Kingdom

        #4
        I was taught some stuff by a guy in Milton ( at the cross roads) IT specialist used to be called Network systems

        Comment

        • Dan
          S2Forum Extremist
          • Jun 2008
          • 1242
          • Country: United Kingdom

          #5
          I'm a web developer by trade - feel free to drop us a PM if you still need a hand.
          1993 ABY Coupe | BMW R1200 GS
          A6 3.0 TDI Quattro (aka Sonic's 'ring support/cargo vehicle )

          Comment

          • Sonic
            Administrator
            • Jul 2006
            • 5514
            • Home: United Kingdom Current: England

            #6
            Originally posted by Error404
            My knowledge is very limited, I know basic HTML & a bit of PHP, but I need help & advice for a CGI script so I can work around the inability to have multiple actions in a form tag. So i can have a user input on a contact form perform two actions, to submit ghe entry to a remote mailing list as well as send an email to my inbox
            Didn't want to use Java as it won't work if its unavailable / disabled... so i need a univeral solution

            Cheers
            Alex
            Is this a pre-written CGI script? Personally i'd be using php over cgi/perl.

            If you want the send the form action as a variable the simplest way is to send the action using some form element, whether it's hidden, a select menu or something else, then just use it in php...

            <?php

            if ($_POST['action'] == 'whatever')
            {
            // Do whatever
            }

            ?>

            Or you could use a switch

            <?php

            switch ($_POST['action'])
            {

            case 'whatever':
            // Do whatever
            break;

            default:
            // Not a defined action
            // Create an error or something

            }

            ?>

            Anything that involves emailing you want to be VERY careful with, because it can very easily be spammed to death with a simple mistake.
            S2Forum.com Administrator

            Comment

            • Error404
              Super Moderator
              • Mar 2007
              • 19789
              • Country: United Kingdom

              #7
              cheers guys,

              Cheers Andy - I'll speak to my mate who wrote most of the PHP for the site, the email side is already done and works well, it was really how I could implement this second action into the same same form - Looks like some extra PHP is the way to go then... he's back off holiday next week
              Panthero Coupé quattro 20vt
              Indigo ABY coupé
              Imola B6 S4 Avant

              Comment

              Working...