Käynnissä

*Simple* PHP Problem

I'm having a very simple problem with my website that I cannot figure out for myself because I am not a PHP expert. The problem is as follows:

I have a webpage, [url removed, login to view], which is manily HTML, only a couple snippets of PHP.

This is my PHP code:

<?php

extract($_REQUEST);

if($a==''){

$a=9999999;

}

if($b==''){

$b=8888888;

}

?>

Its purpose is as follows:

The user is meant to land on this page from a different page which would pass it $a and $b variables. If for some reason those variables are not passed, or if a user navigates directly to the site, $a and $b would not be set, then in that case, the script would set $a to 9999999 and $b to 8888888.

This code works properly because at the bottom of the page, i do a

<?php echo $a ?> and this echos out variable a onto the screen so I know that $a is set.

MY PROBLEM is as follows:

I am having a problem passing my $a and $b variables from this [url removed, login to view] page onto another page ([url removed, login to view]).

This is how I am linking:

<a href="[url removed, login to view]$a&b=$b">

THIS DOES NOT WORK!-> I get errors from the variables not being passed correctly.

I know this because if I pass variables directly, as follows:

<a href="[url removed, login to view];b=2">

THIS WORKS!!

So I know the problem is with passing my $a and $b variables.

I will only pay the buyer once my problem is FIXED.

How will you know its fixed? I will send you my actual URL when I have chosen a winning bid, then, once you have given me a fix, I will implement this on my website, and you can see for yourself whether it works or not. If it works, I will pay you immediately via paypal only.

I am looking to spend $5.00 at most here, I know this is a very simple fix.

Taidot: PHP

Näytä lisää: webpage problem, problem with website, problem website, php goto url, page problem, fix it yourself website, com problem, paypal how does it work, how does paypal work, how does paypal pay you, how do you get paypal, does it works work, php a, webpage php, simple webpage, problem, PHP simple, extract html code script, paypal simple php, paypal php expert, php url amp, paypal code expert, php code html, php extract script, php errors

Tietoa työnantajasta:
( 0 arvostelua ) RIchmond HIll, Canada

Projektin tunnus: #400200

Myönnetty käyttäjälle:

fastphp

Lets do right now

30 $ USD 0 päivässä
(29 arvostelua)
5.6

7 freelanceria on tarjonnut keskimäärin 30 $ tähän työhön

finayev

Hey. Will do it right now for you :)

30 $ USD 1 päivässä
(30 arvostelua)
8.7
phpexp

Please check PM

30 $ USD 0 päivässä
(175 arvostelua)
7.9
php4world

Hello! Please check your PMB.

30 $ USD 0 päivässä
(135 arvostelua)
6.5
Pektsekye

can you attach the script to have a look at?

30 $ USD 1 päivässä
(107 arvostelua)
5.6
acts

we will fix it now ...thnx

30 $ USD 1 päivässä
(9 arvostelua)
4.3
DamienRoche

Can do right now for you. Also for this bid, I can offer a little more support in perhaps refining what you are doing. Because you don't have feedback, I must insist all funds be escrowed first. Best, Damien.

30 $ USD 1 päivässä
(7 arvostelua)
3.4