473,326 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Not get the value after submit the form using light box

190 100+
Hi all,
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
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6.  
  7. <title>
  8. Lightbox Gone Wild Demo
  9. </title>
  10.  
  11. <!-- Meta Tags -->
  12. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  13. <meta name="robots" content="index, follow" />
  14.  
  15. <!-- CSS -->
  16. <link rel="stylesheet" href="css/default.css" media="screen,projection" type="text/css" />
  17. <link rel="stylesheet" href="css/lightbox.css" media="screen,projection" type="text/css" />
  18.  
  19. <!-- JavaScript -->
  20. <script type="text/javascript" src="scripts/prototype.js"></script>
  21. <script type="text/javascript" src="scripts/lightbox.js"></script>
  22.  
  23. </head>
  24.  
  25. <body>
  26.  
  27. <div id="container">
  28.  
  29.     <ul>
  30.     <li><a href="form.html" class="lbOn">Submit an Inquiry</a></li>
  31.     </ul>
  32.  
  33.  
  34. </div><!--container-->
  35.  
  36. </body>
  37. </html>
  38.  
and form.html
Expand|Select|Wrap|Line Numbers
  1. <form id="form" action="form.php" method="post">
  2.     <h2>Example Form</h2>
  3.     <ul>
  4.         <li>
  5.             <label>Name</label><br />
  6.             <input id="" type="text" name="login"/>
  7.         </li>
  8.         <li>
  9.             <label>Message</label><br />
  10.             <textarea name="textar"></textarea>
  11.         </li>
  12.         <li>
  13.             <input type="checkbox" value="" />
  14.             <label>Keep me updated about Particletree Projects.</label>
  15.         </li>
  16.         <li>
  17.             <a href="form.php" class="lbAction" rel="insert"><input type="submit" name="submit" value="GEt Ca"></a> 
  18.             <a href="#" class="lbAction" rel="deactivate"><button>Cancel</button></a>
  19.         </li>
  20.     </ul>
  21. </form>
  22.  
here my php code to get the value from form.html
Expand|Select|Wrap|Line Numbers
  1.  
  2. <?
  3. echo"sdsadAS".$name=$_REQUEST["login"];
  4. echo $test=$_REQUEST["textar"];
  5. ?>
  6.  

What is the problem. Is this not possible to get the value using lightbox?
Mar 27 '09 #1
5 9415
Markus
6,050 Expert 4TB
Use full php tags (<?php ... ?>).

Is your thickbox being opened as an iframe?

Does your form submit at all? Does anything happen when you hit submit?
Mar 27 '09 #2
maheswaran
190 100+
Hi,

No, it not opened as iframe. As i can submit. I submit the form in form.html to from.php. I can echo the some text in form.php but not variables from form.html.

See my attachment have full file
Attached Files
File Type: zip lightbox.zip (18.8 KB, 380 views)
Mar 27 '09 #3
Markus
6,050 Expert 4TB
In your form.php do a print_r() of your POST array.

Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3. echo '<pre>';
  4. print_r( $_POST );
  5. echo '</pre>';
  6.  
  7. ?>
  8.  
Tell us the output, if any.
Mar 27 '09 #4
maheswaran
190 100+
No, it returns only empty array
Mar 27 '09 #5
maheswaran
190 100+
And one thing say to forgot, if am trying with form.html (with out light box) i can get the value in form.php...

For clear - With Light BOx

1.Home page - have form.html link - Included lightbox javascript & lightbox css
2.While clicking link, form.html is open with light box
3.By click the submit button in form.html it redirect to form.php
But not get values


Without light box
1.Directly enter the form.html and submit the form
Got values
Mar 27 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: monika | last post by:
hi ... I have an asp page which has 3 buttons. <p align="center"><input class="button" type="button" onClick="location='welStudent.asp';" value="Click to write a new story"></p> <p...
24
by: London | last post by:
Hello Can you help me. By ASP How can I get the dropdown(control'name)'s selected value? What is it's property'name?
7
by: NewbieJon | last post by:
I am attempting to send the variable "sComputerName" from my ActiveX script to "GetInfo.asp" using javascript. (Having been advised this is the way to get my ActiveX variable into my ASP script) ...
16
by: cwizard | last post by:
I'm calling on a function from within this form, and there are values set but every time it gets called I get slammed with a run time error... document.frmKitAmount.txtTotalKitValue is null or not...
6
by: charlie_M | last post by:
I figured out via various help from this forum... EXAMPLE: onClick="document.forms.MYBUTTON.value='SIMPLE';document.forms.submit()" In my CGI I see "MYBUTTON" = "SIMPLE" and this works...
11
by: Brian D | last post by:
I have been searching for a while to find an answer to this and I must be searching on the wrong keywords. Below is a snippet of my form. There are other form items on it, but I need to submit...
1
by: MDBloemker | last post by:
can anyone help me fathom out how to use this bit of code: Public Class Utilities Public Shared Sub CreateConfirmBox(ByRef txt As WebControls.TextBox, _ ByVal strMessage As String)...
2
by: Archanak | last post by:
Hi, I have one common text box to get email id. I have 2 forms and both form action connects to different programs. I want to use this textbox value(i.e email id) only for both the forms. How...
1
AaronL
by: AaronL | last post by:
Hello, First I would like to say thank you all for your help in the past. I am stumped again. I am creating an e-commerce system and I want to be able to upload images to the server and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.