Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    25

    Need help with PHP script

    I am authoring a page for a someone and would like to link their existing php script inside my program. Can someone please translate the html to the script I need to add to my submit button? Any help would be great. I've tried searching for an answer but can't find one that works. This is a POST method so I just need the inputs to populate on the website.

    Original html:
    <form method="post" action="http://www.aspensound.com/phplist/?p=subscribe" name="subscribeform">
    <input name="email" type="text" class="input" value="">
    <script language="Javascript" type="text/javascript">addFieldToCheck("email","Email Address");</script>
    <input type="image" name="subscribe" value="Subscribe" id="imageField" src="images/btn-GO.gif" onClick="return checkform();">
    <div style="font-size:11px">
    <input type="checkbox" name="list[2]" value="signup" checked>Spokane
    <input type="checkbox" name="list[3]" value="signup">Boise
    <input type="checkbox" name="list[4]" value="signup">Missoula</div>
    </form>

    What I have got so far:
    data1 = Input.GetText("Input1");
    data2 = CheckBox.GetText("list[3]");
    data3 = CheckBox.GetText("list[2]");
    data4 = CheckBox.GetText("list[4]");
    myvalues = {Data1 = data1, Data2 = data2, Data3 = data3, Data4 = data4};
    HTTP.Submit("http://www.aspensound.com/phplist/?p=subscribe", myvalues, SUBMITWEB_POST, 20, 80, nil, nil);


    When I run a test, I am getting nothing to happen.

    Thank you in advance.

  2. #2
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    You are not sending the email address, which seems to be a required field.
    Code:
    <input name="email" type="text" class="input" value="">
    addFieldToCheck("email","Email Address");
    Ulrich

  3. #3
    Join Date
    Mar 2009
    Posts
    25
    Thank you for the help, however, your code looks like html. I am needing this script to enter into AMS. I think your right about what I need but I need the code to enter into the onclick field for my submit button.

Similar Threads

  1. new PHP script question
    By mystica in forum AutoPlay Media Studio 7.5
    Replies: 15
    Last Post: 11-07-2008, 05:36 AM
  2. Example: Sending Email Using a Remote PHP Web Script
    By Corey in forum AutoPlay Media Studio 5.0 Examples
    Replies: 36
    Last Post: 06-10-2007, 02:07 PM
  3. i need a php script, list files on server
    By RizlaUK in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 07-02-2006, 12:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts