Simultaneous POSTing and URL Changing

Get help using Construct 2

Post » Wed Jul 17, 2013 6:53 pm

For a general example, here's an example php file to be called ".php":

<?php
$value = $_POST["extension"];
header("Location: http://scirra." . $value);
?>



In my event editor:

Button Clicked => AJAX: Post "extension=com" to .php file
                      =>Browser: Change URL to .php file


How do I make it so that when I click the button, the extension "com" gets POSTed to the php page, and then have the button successfully bring me to scirra.com?pzs2013-07-17 18:54:10
B
3
Posts: 1
Reputation: 206

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests