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 8422253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:23:43+00:00 2026-06-10T03:23:43+00:00

$bEmail=mysql_real_escape_string($_POST[‘bEmail’]); $bPassword=mysql_real_escape_string($_POST[‘bPassword’]); /webapp/wcs/stores/servlet/Do/LogonForm header(Location: /cart/payment); I want to POST the form /webapp/wcs/stores/servlet/Do/LogonForm in jQuery

  • 0
$bEmail=mysql_real_escape_string($_POST['bEmail']);
$bPassword=mysql_real_escape_string($_POST['bPassword']);
/webapp/wcs/stores/servlet/Do/LogonForm
header("Location: /cart/payment");

I want to POST the form /webapp/wcs/stores/servlet/Do/LogonForm in jQuery you can do:

$.post('/webapp/wcs/stores/servlet/Do/LogonForm', {
email: <?=$bEmail?>,
password: <?=$bPassword?>
},
window.location="cart/payment"

I want to do this in PHP, so PHP runs a script, this page sends a POST back and whilst the script is running at the end it uses the Header to redirect.

  • 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-10T03:23:45+00:00Added an answer on June 10, 2026 at 3:23 am

    Yes you can ….

    $bEmail=mysql_real_escape_string($_POST['bEmail']);
    $bPassword=mysql_real_escape_string($_POST['bPassword']);
    
    //set POST variables
    $url = 'http://domain.com//webapp/wcs/stores/servlet/Do/LogonForm';
    $fields = array(                
                'bEmail'=>urlencode($bEmail),
                'bPassword'=>urlencode($bPassword)
            );
    
    //url-ify the data for the POST
    foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
    rtrim($fields_string,'&');
    
    //open connection
    $ch = curl_init();
    
    //set the url, number of POST vars, POST data
    curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch,CURLOPT_POST,count($fields));
    curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
    
    //execute post
    $result = curl_exec($ch);
    
    //close connection
    curl_close($ch);
    

    and then redirect

    header("Location: /cart/payment");
    exit();  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a functional test to check adding items to a shopping cart.For a
I am trying to remove duplicate data from my database. I found a nice
File : #comment1 #comment2 #comment3 #START HERE a: a@email.com b: b@email.com my perl program
I have two tables (MYISAM) create table A (email varchar(50)); create table B( email
i have been using playframework since 2 years. Framework has JPA on streoids feature.
I have tried looking for answer in the forum but couldnt find any which
I am brand new to the Play framework, but I am trying to use
I am new to hibernate and I am having some trouble with the named
public class DTOa { public int Id { get; set;} public string FirstName {
i have a form created using Visual Basic 2008 in c# i want to

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.