0

I need help with Get Statements and Running on a site on PHP I have this a my PHP code

PHP CODE


This is how I save it but it only saves username ...

http://example.com/NC0.php?U=namehere

I have tried this below but it doesn't work

http://example.com/NC0.php?U=namehere?P=passhere

How can I make it like........ NC0.php?U=namehere?P=passhere

or something similar thanks!!!

4
  • Possible duplicate of Multiple $_GET from a link parameters Commented Apr 5, 2016 at 9:04
  • Please paste actual code here and not a picture of it Commented Apr 5, 2016 at 10:20
  • You would be better off tagging php but I suspect @Lachie has given the right answer. Commented Apr 5, 2016 at 10:43
  • @KGProductions If my answer worked for you please press the tick next to my answer. Commented Apr 6, 2016 at 14:17

1 Answer 1

3

You are using the ? multiple times. It is meant to start the query! To have multiple parameters in the URL you use the & symbol to differentiate the parameters.

For example,

http://example.com/NC0.php?U=namehere&P=passhere

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.