/    Sign up×
Community /Pin to ProfileBookmark

Get PHP to send variable

Hi everyone,

I’m editing some current get PHP code to send a variable zip to FedEx, instead of just one.

I can’t seem to find the correct resources online to learn how to do this, any help is appreciated.

Thanks!

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@jedaisoulOct 18.2014 — How long is a piece of string? The easy part is passing the GET parameter, just replace:

[b]url?zip_code=101010[/b]

or some such, with the equivalent:

[b]url?zip_code=<?php $zip; ?>[/b]

where:

  • - [b]url[/b] is the address of the script/web page the info is being passed to.

  • - [b]zip_code[/b] is the GET variable the script is expecting the zip code to be passed in.

  • - [b]101010[/b] is the fixed zip code passed.

  • - [b]$zip[/b] is the PHP variable set to the required value.
  • ×

    Success!

    Help @Minnesota31 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...