How to send arguments to php class?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aRTx
    New Member
    • Jun 2007
    • 30

    How to send arguments to php class?

    I can't see a class, but i know i can send arguments see:


    [HTML]https://myaccount.smsdi scount.com/clx/sendsms.php?use rname=xxxxxxxxx x&password=xxxx xxxxxx&from=xxx xxxxxxx&to=xxxx xxxxxx&text=xxx xxxxxxx[/HTML]

    if you made it link and fill username, password, text, to ... then with one click you can send sms from your desktop html code

    how to send arguments to php class with textbox
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Just create a form, a text input for each argument, name each appropriately and add a submit button.

    The browser will take care of the rest.

    Comment

    • aRTx
      New Member
      • Jun 2007
      • 30

      #3
      Can you post code about it!

      I don't know how to do it

      please make any simple form and post...

      aRTx with respect

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Take a look at this tutorial and come back if you have any more questions.

        Comment

        • aRTx
          New Member
          • Jun 2007
          • 30

          #5
          How to hide my first field username and password from view source?
          I'm thinging!
          is it possible with php?

          [HTML]<form action="https://myaccount.artxc enter.com/sendsms.php" method="post">

          <input type="hidden" name="username" value="xxx" size="20" >
          <input type="hidden" name="password" value="xxx" size="20" >

          <input type="text" name="to" value="+37744xx xxxx" size="20" >

          Message: <textarea size="50" rows="8" name="text" cols="40" </textarea>

          <input name="Submit" type="submit" id="Submit" value="Dergo" onSubmit=mbylle () />

          </form>[/HTML]

          Comment

          • pbmods
            Recognized Expert Expert
            • Apr 2007
            • 5821

            #6
            Heya, aRTx.

            The only way to do that would be to remove the Username/Password fields from the form and have the form submit to a PHP script on your server that then adds the Username and Password and sends the request to the remote server.

            Comment

            • kovik
              Recognized Expert Top Contributor
              • Jun 2007
              • 1044

              #7
              If you want your users to be able to log in via a URL (which I highly recommend against, but if you MUST...), have the script check for the existence of the GET variables before hand (just like you'd do with POST variables) and process them as normal instead of ever needing to show a form.

              Comment

              Working...