Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.