Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8661631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:32:36+00:00 2026-06-12T16:32:36+00:00

I need help forwarding html form content to public http service if someone can

  • 0

I need help forwarding html form content to public http service if someone can explain how this can be done or where to find a tutorial for this would be great!

I have my form made as you can see below:

<span class="text"> <input class="text" type="text" name="First" value="First" ></span>
                <span class="text"> <input class="text" type="text" name="Last" value="Last" ></span>
                <span class="text"><input type="text" value="Email" /></span>
                <input class="btn-submit" type="submit" value="Submit"  />   

I was given the following code to forward the input:

$.ajax({
    url: 'https://www.saddleback.com/Services/Subscription/Subscription/Save/' + subscriptionId,
    data: {
        'firstName': firstName,
        'firstName': firstName,
        'lastName': lastName,
        'email': email,
        'redirectToUrl': redirectToUrl,
        'redirectFailureToUrl': redirectFailureToUrl
    },
    type: "post",
    cache: false,
    dataType: "text",
    success: function (message) {
        $('.subscriptionWarning').append("<span id=''litStatus''>" + message + "</span>");
    },
    error: function (xhr, ajaxOptions, thrownError) {
        $('.subscriptionWarning').append("<span id=''litStatus''>Error encountered while saving subscription.</span>");
    }
});

The ID I needed to forward it to is 23

Thank you for the help and sorry if my question was phrased wrong.

    <span class="text"> <input class="text" type="text" name="firstName" value="First" ></span>
                <span class="text"> <input class="text" type="text" name="lastName" value="Last" ></span>
                <span class="text"><input type="text" name="email" value="Email" /></span>
                <input class="btn-submit" type="submit" value="Submit"  />       








$fname = $_GET['firstName'];
$lname = $_GET['lastName'];
$email = $_GET['email'];

$h = curl_init();

curl_setopt($h, CURLOPT_URL,           "http://profile.purposedriven.com/managesubscriptionssimple.aspx");
curl_setopt($h, CURLOPT_POST, true);
curl_setopt($h, CURLOPT_POSTFIELDS, array(
'name' => 'yes',
'comment' => 'no'
));
curl_setopt($h, CURLOPT_HEADER, false);
curl_setopt($h, CURLOPT_RETURNTRANSFER, 1);

$result = curl_exec($h);
echo $result;

Thats what my code looks like now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:32:37+00:00Added an answer on June 12, 2026 at 4:32 pm

    You won’t be able to make an ajax request to an website with a different domain.

    Read more here: Why Cross-Domain AJAX call is not allowed?

    How ever you can make the request in your own server using php and cURL or file_get_contents

    Example: Submit your form in your own website than:

    $fname = $_GET['firstName'];
    $lname = $_GET['lastName'];
    $email = $_GET['email'];
    

    And follow cURL from the manual here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Need Help - I have some code for Logout like this public void logoutFromFacebook()
Need help I am scraping data from this website which has a form that
Need help writing a script downloads data from google insight using c# this is
I need help with one ajax function This is raw page setup. Page will
need help... the getting input form: <select name=age> <option value=25-30>25-30</option> <option value=31-40>31-40</option> <option value=41-50>41-50</option>
Need help with an error message that I just can't figure out. I am
Need help on this following code. the problem is it only trigger the last
Need help resolving a display problem on Fancybox content in IE8. It works fine
I need some help with forwarding resultset(rs) to a jsp . I've implemented the
Need help with the last part. how can I take the expense sum and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.