开发者

Challenging question about html form

This is the whole source code, i would like to modify it to add a new column to show the Client Mobile Client Office Telephone Client E-mail in an another popup php pages.

What i have attempted is to add a form and a submit button to create a new column , when i press that submit button, the mobile, office,email information will post to another php page to print out. however, since there is a another form exist already, when i add a form ,the function in the following form will not work. (Don't worries , i will indicate where the problems happen.)

it is a complicat开发者_StackOverflow社区ed question. Thanks in advance

The source code is here: https://docs.google.com/leaf?id=0B196kQ-9lu50OTI1NDZkMjktNzAzNi00MmM0LWIzMjgtNTQxMTIyZmYyM2I1&hl=en_US

the problem is at line 99

p.s. I just found out the form method can not get my job done, since it can not create a popup window for the information at the same time.


Looks like at line 126 there is an extra </form> tag. Delete it...that might help.

EDIT:

Ok. So it needs to look something like this:

$_SESSION['echoable'] = $aVar; //put any variable you want here, such as POST data

Then, in the popup window, write:

EDIT: forgot to say, add this to the TOP of your page.

session_start();

Then do this stuff later on.

if((isset($_SESSION['echoable'])) && (!empty($_SESSION['echoable']))) {
echo $_SESSION['echoable'];
}

else {
echo "whatever"; // whatever you want here
}

The above will print whatever var you want. Hopefully this helps...if not let me know.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜