pspmodandcfw
07-06-2009, 07:14 PM
Hello guys i took a look at the thread on How To make Your Own VB Powered Pages but its only for HTML. I need to know how to integrate the following code into vbulletin which includes PHP not just HTML.
Here is the HTML Part:
$Headinclude + $Header
<h4>Tizag Art Supply Order Form</h4>
<form action="market.php?do=order" method="post">
<select name="item">
<option>Paint</option>
<option>Brushes</option>
<option>Erasers</option>
</select>
Quantity: <input name="quantity" type="text" />
<input type="submit" />
</form>
$Footer
Here is the PHP Part:
<?php
$quantity = $_POST['quantity'];
$item = $_POST['item'];
echo "You ordered ". $quantity . " " . $item . ".<br />";
echo "Thank you for ordering from Tizag Art Supplies!";
?>
How would i get the output of that FORM in 1 of my vbulletin pages. For Example The Market.php Page is where the a member selects the options and i already have this done by inserting it in a template however how would i get the output from the PHP into the template so it would be like this on the market.php?do=order page.
$Headinclude + Header
You ordered 6 brushes.
Thank you for ordering from Tizag Art Supplies!
$Footer
Thank You.
--------------- Added 1246919994 at 1246919994 ---------------
NVM guys i took a look at the sendmessage.php file and saw how VB uses it and figured out how to do it. :)
Here is the HTML Part:
$Headinclude + $Header
<h4>Tizag Art Supply Order Form</h4>
<form action="market.php?do=order" method="post">
<select name="item">
<option>Paint</option>
<option>Brushes</option>
<option>Erasers</option>
</select>
Quantity: <input name="quantity" type="text" />
<input type="submit" />
</form>
$Footer
Here is the PHP Part:
<?php
$quantity = $_POST['quantity'];
$item = $_POST['item'];
echo "You ordered ". $quantity . " " . $item . ".<br />";
echo "Thank you for ordering from Tizag Art Supplies!";
?>
How would i get the output of that FORM in 1 of my vbulletin pages. For Example The Market.php Page is where the a member selects the options and i already have this done by inserting it in a template however how would i get the output from the PHP into the template so it would be like this on the market.php?do=order page.
$Headinclude + Header
You ordered 6 brushes.
Thank you for ordering from Tizag Art Supplies!
$Footer
Thank You.
--------------- Added 1246919994 at 1246919994 ---------------
NVM guys i took a look at the sendmessage.php file and saw how VB uses it and figured out how to do it. :)