Paypal Not Loading in PHP Tags

时间:2015-07-29 00:15:06

标签: php html forms

Hey guys I have made a form that sends out an email. When you get a confirmation that it has sent I have put a paypal link button on the page as well. When I tried to wrap it around php tags I keep getting a blank white screen. I know I have done something wrong in the code but can't find it.

$post_id

Any chance you could help me out with what i've done wrong?

1 个答案:

答案 0 :(得分:1)

You have a typo at "post".

function getNewMessagesLong() {
    pollingFishingStarts();
    $request = $.ajax({
        type: 'POST',
        url: "listenMessageLong",
        data: lastIncomingMessageLongJson,
        dataType: 'json',
        success: function(data) {
            console.log('Long Fishing ends...');
            pollingFishingEnds();
            }, complete: getNewMessagesLong})
}

See above: method="'post'