Need help with functions
| From: | Bob Sears | Date: | Tue, 30 Apr 2002 01:21:40 +0000 |
| Subject: | Need help with functions | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13410@lists.php.net to get a copy of this message | ||
I'm into developing a shopping cart using PHP (naturally) and am running into a little snag.
I need to be able to perform several tasks within the framework of a <form></form> construct:
1) Call a function from within the module;
2) Call an external PHP module (no return) with the contents of ALL elements within the form;
3) Call an external (or a function) that will overlay a smaller window to display cart contents and
have the customer click a button to close the window (return?). All FORM contents needed;
Here is the pseudo code, subject to MAJOR change (obviously) ...
<?
function function_one()
{
print ("I'm in function one ...");
}
?>
<html>
<head>
</head>
<body>
<form>
This is program one ...
<?
print ("<a href=\"bob2.php\"> click here</a>"); <---- This needs to transfer to
another module, not returning.
print ("<input type=???">); <---- This needs to enter function_one
and remain within the module
print ("???????????????"); <---- This needs to transfer to another
module (or call another function
within this module) to open another
window, display the contents of a
shopping cart, then have the customer
click a button to close with window.
?>
</form>
</body>
</html>
Can anyone return this with some pseudo code?
Bob