Figuring out the action link of a form (for PHP Curl)

Discussion in 'PHP' started by FunkyFresh, Jul 21, 2011.

  1. #1
    I am trying to figure out the action link of a form so that I can use it to run my Curl application. What does it mean when a webpage has this kind of form
     <form name="tBWForm" action="TBW" onsubmit="return false;" id="tBxForm" method="post" >
    HTML:
    and this is the submit button code
    <input type="image" onclick="javascript:addCourse()" alt="Click" disabled="disabled" class="btnBorder" src="images/add_coursebtn.gif" title="add course" id="addCourseButton" name="adCourse">
    HTML:
    The question is what link do I use for CURLOPT_URL for the Curl library?
     
    FunkyFresh, Jul 21, 2011 IP
  2. techbongo

    techbongo Active Member

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Try to post the code inside javascript function - addCourse()
    If the code doesn't modify the action attribute of the form, or doesn't submit the form elsewhere then may be the action URL is
    path_to_current_file's_directory/TBW
     
    techbongo, Jul 21, 2011 IP
  3. FunkyFresh

    FunkyFresh Peon

    Messages:
    499
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Still cant find what it does. I will pay whoever can help me with this 5 minutes job.
     
    FunkyFresh, Jul 24, 2011 IP
  4. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #4
    This is a JavaScript aka jscript form. What is the full webpage address? The website might be in the java code itself instead of the form.
     
    exodus, Jul 24, 2011 IP
  5. FunkyFresh

    FunkyFresh Peon

    Messages:
    499
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    pm sent with the link. I would rather not post it on here.
     
    FunkyFresh, Jul 25, 2011 IP