0

In PHP - I'm trying to pass a second item &show_sill via the URL string and keep getting this error:
- Parse error: syntax error, unexpected '&' what is the correct syntax when trying to utilize mutliple items via the querystring:

header("Location: submit.php?upload_message=image uploaded&upload_message_type=success&show_image=".$_FILES["image_upload_box"]["name"]&show_sill=".$_FILES["imgOrgSrc"]["name"]);
        exit;
2
Contributors
2
Replies
10
Views
2 Years
Discussion Span
Last Post by koneill
0

You've missed a concatenation:

header("Location: submit.php?upload_message=image uploaded&upload_message_type=success&show_image=".$_FILES["image_upload_box"]["name"] . "&show_sill=".$_FILES["imgOrgSrc"]["name"]);
    exit;

btw never use input vars directly. Ensure that you urlencode() any vars.

Edited by diafol

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.