HTML going to PHP in frontpage

F

Frank H. Shaw

Acording to my reading and understanding I change the name of my HTML coded
page in front page to somename.PHP from somename.HTML this tells the server
that enbeded in the HTML page is PHP code. Then in the body inside my HTML
code I would put the following:

<?PHP


?>
Then continue with the rest of the HTML code

Note: I want to do it in a form containing hidden fields

Ok how do I go from my HTML to a responce page using PHP The code in HTML is
the following:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="Pro Style ATF Ankle Brace with
Universal Fit">
<input type="hidden" name="item_number" value="212-E">
<input type="hidden" name="amount" value="20.95">
<input type="hidden" name="return"
value="http://www.skolsportsshop.com/success.htm">
<input type="hidden" name="cancel_return"
value="http://www.skolsportsshop.com/cancel.htm">
<input type="hidden" name="currency_code" value="USD">
<input TYPE="image" SRC="https://www.paypal.com/images/sc-but-03.gif"
NAME="submit0"alt="Make payments with PayPal - it's fast, free and secure!"
width="124" height="26">
<input type="hidden" name="add" value="1">
</form>

WHAT I WANT TO DO IS PUT LOGIC IN THE FORM ABOVE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top