close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirect on selection of menu item

Thread began 1/14/2019 10:43 am by balexander389215 | Last modified 1/14/2019 12:56 pm by Ray Borduin | 182 views | 1 replies |

balexander389215

Redirect on selection of menu item

I have created a basic form with a menu as follows

<div class="fullColumnGroup">
<label for="Membership_type" class="sublabel" > Member Type:<span class="requiredIndicator">&nbsp;*</span></label>
<select name="Membership_type" class="formMenufield_Medium" id="Membership_type" tabindex="1" title="Please enter a value" rel="<?php echo((isset($_GET["invalid"])?ValidatedField("register","Membership_type"):"")); ?>" required="true">
<option value="" <?php if (!(strcmp("", (isset($_GET["invalid"])?ValidatedField("register","Membership_Type"):"")))) {echo "selected=\"selected\"";} ?>>Select Type</option>
<option value="Basic" <?php if (!(strcmp("Basic", (isset($_GET["invalid"])?ValidatedField("register","Membership_Type"):"")))) {echo "selected=\"selected\"";} ?>>Basic</option>
<option value="Professional" <?php if (!(strcmp("Professional", (isset($_GET["invalid"])?ValidatedField("register","Membership_Type"):"")))) {echo "selected=\"selected\"";} ?>>Professional</option>
<option value="Concert Promoter" <?php if (!(strcmp("Concert Promoter", (isset($_GET["invalid"])?ValidatedField("register","Membership_Type"):"")))) {echo "selected=\"selected\"";} ?>>Concert Promoter</option>
<option value="Venue Manager" <?php if (!(strcmp("Venue Manager", (isset($_GET["invalid"])?ValidatedField("register","Membership_Type"):"")))) {echo "selected=\"selected\"";} ?>>Venue Manager</option> </select>
<?php
if (ValidatedField('register','register')) {
if ((strpos((",".ValidatedField("register","register").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Membership_type_ServerError">Please enter a value</span>
<?php //WAFV_Conditional register.php register(1:)
}
}
}?>
</div>

What I would like to have happen is if someone selects Professional they are automatically redirected to a different (payment) page. Is that possible within the menu or do I have to redesign the form?

Thanks

Brian

Sign in to reply to this post

Ray BorduinWebAssist

Just wrap it in a form tag with an action that points to the page you want to go to. Then add onchange="this.form.submit()" and it will submit the form and go to the action page when a selection is made.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...