My home page have login button to login the users. Am trying to use lightbox method in login screen. Using this when user click the loing button, login form will appear with lightbox effect and home page get shadow effect (all are knew about light box else see http://particletree.com/features/lightbox-gone-wild/). While trying with this i can not get the value from form.html to form.php when am submit the page from.html
Here my code:
index.html
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>
- Lightbox Gone Wild Demo
- </title>
- <!-- Meta Tags -->
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta name="robots" content="index, follow" />
- <!-- CSS -->
- <link rel="stylesheet" href="css/default.css" media="screen,projection" type="text/css" />
- <link rel="stylesheet" href="css/lightbox.css" media="screen,projection" type="text/css" />
- <!-- JavaScript -->
- <script type="text/javascript" src="scripts/prototype.js"></script>
- <script type="text/javascript" src="scripts/lightbox.js"></script>
- </head>
- <body>
- <div id="container">
- <ul>
- <li><a href="form.html" class="lbOn">Submit an Inquiry</a></li>
- </ul>
- </div><!--container-->
- </body>
- </html>
Expand|Select|Wrap|Line Numbers
- <form id="form" action="form.php" method="post">
- <h2>Example Form</h2>
- <ul>
- <li>
- <label>Name</label><br />
- <input id="" type="text" name="login"/>
- </li>
- <li>
- <label>Message</label><br />
- <textarea name="textar"></textarea>
- </li>
- <li>
- <input type="checkbox" value="" />
- <label>Keep me updated about Particletree Projects.</label>
- </li>
- <li>
- <a href="form.php" class="lbAction" rel="insert"><input type="submit" name="submit" value="GEt Ca"></a>
- <a href="#" class="lbAction" rel="deactivate"><button>Cancel</button></a>
- </li>
- </ul>
- </form>
Expand|Select|Wrap|Line Numbers
- <?
- echo"sdsadAS".$name=$_REQUEST["login"];
- echo $test=$_REQUEST["textar"];
- ?>
What is the problem. Is this not possible to get the value using lightbox?