Jump to content

Recommended Posts

Hello,

I'm creating a form which depends on their first input, when they select the first type from a dropdownlist and press 'Go to step 2' they'll go there and select a subtype (which depends on their first input). Above the input of subtype I've created the dropdownlist from step 1, so they'll be able to see what they've chosen. The problem is hard to explain, but I'll try.

<?php 
$page = $_GET['p'];

$gotchatype = $_POST['gotchatype'];
$gotchasubtype = $_POST['gotchasubtype'];

if($page == gotcha){
if($gotchatype == movies) {
	if($gotchasubtype == rip){
		<!-- Form of step 3 --!>
	}
	<!-- Form of step 2 --!>
}
<!-- Form of step 1 --!>
}
?>

 

But since I've 'DISABLED' the dropdown box that they've chosen earlier it doesn't send that part, so it doesn't go further than if($page == gotcha){.

I hope that you understand my problem.

 

Regards,

 

EDIT:

I've made the script more 'simple' to understand.

Link to comment
https://forums.phpfreaks.com/topic/192190-form-with-a-lot-of-different-pages/
Share on other sites

Thanks, I think I might be able to do that, but that would take a lot of time. Isn't it possible to send the information from a 'Disabled' dropdown-box? Like:

<form method="POST" action="page.php">
<select name="gotcha-type" DISABLED>
<option value="movies">Movies / Images</option>
</select>
</form>

Right now it sends the information if I remove 'DISABLED' (of course, totally logic), but is it also possible to keep it sending while it is disabled?

 

Regards,

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.