0

If want to pass multiple variables in save.php

header('Location: save.php?id_no='.$id_no.'?f_name='.$f_name.'?l_name='.$l_name.);
1
  • 1
    put in cookies and access them in next page..if not logged in if after logged in then use Sessions Commented Feb 27, 2017 at 5:32

2 Answers 2

1

Change from

header('Location: save.php?id_no='.$id_no.'?f_name='.$f_name.'?l_name='.$l_name.);

to

header('Location: save.php?id_no='.$id_no.'&f_name='.$f_name.'&l_name='.$l_name);
Sign up to request clarification or add additional context in comments.

Comments

1
  1. You have extra . dot at last

  2. Also using multiple ? question mark is wrong use & ampersand

  3. Use " instead of ' to process php variable which do not need . dots to concatenate

Simply try like this

header("Location: save.php?id_no=$id_no&f_name=$f_name&l_name=$l_name");

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.