Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8499553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:41:57+00:00 2026-06-11T00:41:57+00:00

Ok I have a form on my page where people enter specific data. Then

  • 0

Ok I have a form on my page where people enter specific data. Then I want that data to be taken to a php page on my server that takes the form data and appends it to a url but either performs the function in a new window (I prefer the url to be hidden but not necessary) or performs the action without directing to the url (ie the url is opened but doesn’t appear to the user)

Ex say I have 5 fields in the form so the base url is example.com/ and I want once the fields are entered to direct to example.com/field1&field2&field3&field4&field5

I have been able to get the action to perform with getelement codes but it opens in the same window and clears the form when they go back. I would prefer that the form stay so they can re-enter new information and continue to perform the url action.

This is what I have come up with so far for what Im looking for but It wont perform the action I get a server issue.

FORM:

<form method="post" action="http://gamerzacademy.com/trsrequest.php" target="blank">
<input type="text" name="ids" />
<input type="hidden" name="tab_clicked" value="Cafe" />
<input type="hidden" name="request_id" value="100172873469866" />
<input type="text" name="signed_request" />    <
<select name="gid" name="gid">
<option value="8631">Drums    </option>
<option value="8632">Guitar Strings    </option>
<option value="8633">Drumsticks    </option>
<option value="8634">Guitar Straps    </option>
<option value="8635">Microphones    </option>
<option value="8636">Speakers    </option>
<option value="8637">Handle Bar    </option>
<option value="8638">Spark Plug    </option>
<option value="8639">Leather Seat    </option>
<option value="8640">Motor Oil    </option>
<option value="8641">Metallic Paint    </option>
<option value="8642">Welding Torch     </option>
</select>
<input type="hidden" name="today" value="1" />
<input type="hidden" name="time" value="1345953369" />
<input type="hidden" name="ref" value="gift_today" />
<input type="hidden" name="cafe_token" value="OAlF7gSlMbQxAtBhvnprTyCLwuJFvNnvHwDcqeIrZ2YIofJzlyiZ2%2FVvflh2ih24wK1TsWdSyBH0xR205Q9+WwR%2F6ckIv4ozN4YdVvvWP2NmFlq95685hw%3D%3D" />

..... more fields .....

</form>

PHP

<?php
header("Location: http://fb-0.cafe.zynga.com/current/iframe//mfs_sent.php?'.'$_GET['ids'].'.'$_GET['tab_clicked'].'.'$_GET['request_id'].'.'$_GET['signed_request'].'.'$_GET['gid'].'.'$_GET['today'].'.'$_GET['time'].'.'$_GET['ref'].'.'$_GET['cafe_token'].'.'$_GET['from_page'].'.'$_GET['kingdom'].'.'$_GET['phylum'].'.'$_GET['uid'].'.'$_GET['sendkey'].'.'$_GET['mode'].'.'$_GET['trs_key'].'.'$_GET['stage'].'.'$_GET['mfs_time'].'.'$_GET['snood'].'.'$_GET['hash'].'.'$_GET['limiter_channel'].'.'$_GET['limiter_type'].'.'$_GET['ajax'].';"
?>

However I get this error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/15/9484115/html/trsrequest.php on line 2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:41:59+00:00Added an answer on June 11, 2026 at 12:41 am

    Your header function should be like:

    <?php
    header("Location: http://fb-0.cafe.zynga.com/current/iframe//mfs_sent.php?".
    urlencode($_POST['ids'])."&".
    urlencode($_POST['tab_clicked'])."&".
    urlencode($_POST['request_id'])."&".
    urlencode($_POST['signed_request'])."&".
    urlencode($_POST['gid'])."&".
    urlencode($_POST['today'])."&".
    urlencode($_POST['time'])."&".
    urlencode($_POST['ref'])."&".
    urlencode($_POST['cafe_token'])."&".
    urlencode($_POST['from_page'])."&".
    urlencode($_POST['kingdom'])."&".
    urlencode($_POST['phylum'])."&".
    urlencode($_POST['uid'])."&".
    urlencode($_POST['sendkey'])."&".
    urlencode($_POST['mode'])."&".
    urlencode($_POST['trs_key'])."&".
    urlencode($_POST['stage'])."&".
    urlencode($_POST['mfs_time'])."&".
    urlencode($_POST['snood'])."&".
    urlencode($_POST['hash'])."&".
    urlencode($_POST['limiter_channel'])."&".
    urlencode($_POST['limiter_type'])."&".
    urlencode($_POST['ajax']));
    ?>
    

    Or you can do:

    <?
    $urlArgs = http_build_query($_POST);
    header("Location: http://fb-0.cafe.zynga.com/current/iframe//mfs_sent.php?".$urlArgs);
    ?>
    

    Note that this creates a parameter string that is key-value pairs though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a contact page (contact.php) that sends a form (formsend.php) when people fill
I have a form page in PHP that reads a DBF, and conditionally converts
I have an HTML form which I want to post data to then display
I have a form page where users enter some data and upon hitting 'submit'
I have a form on a page that a user can use to create
I want to have a form on my page take user input, a URL
I currently have a web form aspx page that calls RegisterClientScriptBlock. This sends down
I have a form in an HTM page that, after pressing the submit button,
I have a form on my page that I am having trouble receiving a
I have a PHP site (with CodeIgniter) that includes a registration form. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.