Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 04-15-2011, 11:17 PM   #1
New Member
 
Join Date: Apr 2011
Posts: 1
Default Dreamweaver Text Form Help

Hello there,
I have a question about creating text forms in Adobe Dreamweaver. I would like to be able to make it so only specific information entered in a text form will link to an access page while any other information entered will redirect to an error page.

For instance, let's say I want the specific information to be "abc". Whenever I enter "abc" in the text form, I want to be able to access a linked page. However, I want any other information entered in the field to redirect to an error page.

Thanks in advance!
mitch2234 is offline   Reply With Quote


Old 04-16-2011, 06:12 AM   #2
Bronze Member
 
websonalized's Avatar
 
Join Date: Mar 2011
Location: California, United States
Posts: 92
Default

you indicate what you want in the process.php file as an if statement

example:

<form name="input" action="process.php" method="post">
Enter the right info: <input type="text" name="right_info" />
<input type="submit" value="Submit" />
</form>

process.php

if ($_POST['right_info'] = "abc"){

then...

} else {

header( 'Location: http://www.yoursite.com/new_page.html' ) ; }
websonalized is offline   Reply With Quote
Reply

Tags
dreamweaver, form

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:36 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.