Jump to content

[SOLVED] Simple $_GET problem


jaisol99

Recommended Posts

Hi All

 

I want to transfer data via web page link, I can get my code to work with 1 variable but not 2 or more.

I seem to remeber I need to include '&' somewhere but can't figure out where.

 

Here's the code

<a href="test.php?val=15 val2=guppt awonga">Test values</a>

 

I want to get val1 and val2 .. val99.

 

Many thanks

Link to comment
https://forums.phpfreaks.com/topic/179534-solved-simple-_get-problem/
Share on other sites

test.php?val=15&val2=guppt awonga

 

The first variable is prefixed with the question mark, every variable after that is prefixed with the ampersand.  You're also going to have a problem with that href link because there is a space, which needs urlencode invoked on it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.