Order_action.php

Secţiune dedicată începatorilor.

Moderatori: Moderatori, Start Moderator

Avatar utilizator
dirtydiana
PHPRomania Supporter
Mesaje: 8
Membru din: Joi Sep 03, 2009 8:24 pm

Order_action.php

Mesajde dirtydiana » Joi Sep 03, 2009 8:35 pm

Salutare,

Sunt total pe langa codul PHp, lucrez la un site acum si m-ar interesa niste optiuni de pe un site international insa imi lipseste o pagina order_action.php


Cele 2 pagini:
order.php

order_success.php

Intre cele doua lipseste order_action.php

Pagina care-mi lipseste presupun ca se afla codul in care ar trebui sa apara adresa mea de mail, unde primesc informatiile introduse la order.php

Probabil e ceva simplu insa de o sapt ma chinui cu diverse coduri si nu-mi trimite pe mail nimic :(

Faptul ca nu pot introduce link-uri probabil face ca post-ul sa fie degeaba, ciudata decizie cu link-urile astea[/img]



Avatar utilizator
Amenthes
Senior Member
Mesaje: 1370
Membru din: Lun Dec 12, 2005 8:00 am
Contact:

Mesajde Amenthes » Joi Sep 03, 2009 8:41 pm

Scrie link-uri asa: w w w . google . r o. Sau ceva asemanator.
I'm under construction |

Avatar utilizator
dirtydiana
PHPRomania Supporter
Mesaje: 8
Membru din: Joi Sep 03, 2009 8:24 pm

Mesajde dirtydiana » Joi Sep 03, 2009 8:53 pm

Mersi pentru sugestie (nu vroiam sa incalc regulile din cauza asta n-am postat asa :D )

Revin cu cele doua link-uri:


w w w . decentbanners . com / order.php

Intre cele doua lipseste order_action.php

w w w. decentbanners . com / order_success.php

Avatar utilizator
Amenthes
Senior Member
Mesaje: 1370
Membru din: Lun Dec 12, 2005 8:00 am
Contact:

Mesajde Amenthes » Joi Sep 03, 2009 9:01 pm

I'm under construction |

foreverlost
Average Member
Mesaje: 132
Membru din: Mie Iul 29, 2009 8:06 pm
Localitate: Gaesti

Mesajde foreverlost » Vin Sep 04, 2009 8:01 am

Daca lucrezi la un site avansat si faci cumva vreo ordonare dat pe aceasta o setezi pe cookie atunci setarea se face intr-un filtru preprocess ce trebuie OBLIGATORIU sa faca redirect sau sa nu deschizi nici o conexiune la baza inainte de a face set_cookie().

Avatar utilizator
dirtydiana
PHPRomania Supporter
Mesaje: 8
Membru din: Joi Sep 03, 2009 8:24 pm

Mesajde dirtydiana » Vin Sep 11, 2009 2:48 pm

Eu nu stiu ce cod (php) imi trebuie in fisierul order_action.php pentru ca acesta sa-mi poate trimite pe adresa mea de mail informatiile de mai jos:

Amenthes iti multumesc pentru cod insa cred ca lipseste partea cu $to = 'nobody@example.com sau ceva de genu sa pot primi informatiile.

Imi cer scuze e cam lung codul:

<form action="order_action.php" method="post" id="order_w" onsubmit="return submitForm(this)">
<div id="order">
<h3 id="order_slogan">
<span><a id="f_slogan" href="">Unique &amp; Pleasant Designs</a></span>
<span><a id="s_slogan" href="">Satisfaction Guaranteed</a></span>
<span><a id="t_slogan" href="">Easy Communication</a></span>
</h3>

<div id="order_content" class="order_price">
<h4>Select Package Deals:</h4>
<table>
<tr>
<th class="name">Name</th>
<th class="price">Price</th>
<th class="quantity">Quantity</th>
<th class="total">Total Cost</th>
</tr>
<tr>
<td><div class="banner-div"><strong>Standard Pack</strong><img src="images/interrogation.gif" alt="interrogation"
width="16" height="16" class="q" />
<span class="banner">
<img src="images/show2.gif" alt="interrogation" />
</span>
</div></td>
<td>$70.00</td>
<td>
<input type="text" name="s_standardpack_qty" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)">
</td>
<td class="ill">$<input
type="text" name="s_standardpack_tot" value="0" readonly onfocus="this.blur()">
<input type="hidden" name="s_standardpack_price" value="70.00">
</td>
</tr>
<tr>
<td><div class="banner-div"><strong>Golden Pack</strong><img src="images/interrogation.gif" alt="interrogation"
width="16" height="16" class="q" />
<span class="banner">
<img src="images/show3.gif" alt="interrogation" />
</span></div>
</td>
<td>$85.00</td>
<td><input name="s_goldenpack_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_goldenpack_tot" type="text"
value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_goldenpack_price" value="85.00">
</td>
</tr>
<tr>
<td><div class="banner-div"><strong>All in One Pack</strong><img src="images/interrogation.gif" alt="interrogation"
width="16" height="16" class="q" />
<span class="banner">
<img src="images/show1.gif" alt="interrogation" />
</span></div>
</td>
<td>$100.00</td>
<td><input name="s_allinonepack_qty" type="text"
value="0" onchange="getProductTotal(this,this.form)" onclick="checkValue(this)"
onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_allinonepack_tot" type="text"
value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_allinonepack_price" value="100.00">
</td>
</tr>
<tr>
<td><div class="banner-div"><strong>Platinum Pack</strong><img src="images/interrogation.gif" alt="interrogation"
width="16" height="16" class="q" />
<span class="banner">
<img src="images/show4.gif" alt="interrogation" />
</span></div>
</td>
<td>$125.00</td>
<td><input name="s_platiumpack_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_platiumpack_tot" type="text"
value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_platiumpack_price" value="125.00">

</td>
</tr>
</table>
<h4>Individual Banners:</h4>
<table>
<tr>
<th class="name">Name</th>
<th class="price">Price</th>
<th class="quantity">Quantity</th>
<th class="total">Total Cost</th>
</tr>
<tr>
<td><strong>80x80</strong></td>
<td>$6.50</td>
<td><input name="s_80_80_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_80_80_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_80_80_price" value="6.50">

</td>
</tr>
<tr>
<td><strong>88x31</strong></td>
<td>$6.50</td>
<td><input name="s_88_31_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_88_31_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_88_31_price" value="6.50">

</td>
</tr>
<tr>
<td><strong>100x100</strong></td>
<td>$15.00</td>
<td><input name="s_100_100_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_100_100_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_100_100_price" value="15.00">
</td>
</tr>
<tr>
<td><strong>120x60</strong></td>
<td>$15.00</td>
<td><input name="s_120_60_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_120_60_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_120_60_price" value="15.00"></td>
</tr>
<tr>
<td><strong>120x90</strong></td>
<td>$15.00</td>
<td><input name="s_120_90_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_120_90_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_120_90_price" value="15.00"></td>
</tr>
<tr>
<td><strong>120x120</strong></td>
<td>$15.00</td>
<td><input name="s_120_120_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_120_120_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_120_120_price" value="15.00"></td>
</tr>
<tr>
<td><strong>120x240</strong></td>
<td>$15.00</td>
<td><input name="s_120_240_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_120_240_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_120_240_price" value="15.00"></td>
</tr>
<tr>
<td><strong>125x125</strong></td>
<td>$15.00</td>
<td><input name="s_125_125_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_125_125_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_125_125_price" value="15.00"></td>
</tr>
<tr>
<td><strong>120x600</strong></td>
<td>$15.00</td>
<td><input name="s_120_600_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_120_600_" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_120_600_price" value="15.00"></td>
</tr>
<tr>
<td><strong>158x72</strong></td>
<td>$15.00</td>
<td><input name="s_158_72_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_120_600_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_158_72_price" value="15.00"></td>
</tr>
<tr>
<td><strong>160x100</strong></td>
<td>$15.00</td>
<td><input name="s_160_100_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_160_100_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_160_100_price" value="15.00"></td>
</tr>
<tr>
<td><strong>160x240</strong></td>
<td>$15.00</td>
<td><input name="s_160_240_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_160_240_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_160_240_price" value="15.00"></td>
</tr>
<tr>
<td><strong>160x600</strong></td>
<td>$15.00</td>
<td><input name="s_160_600_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_160_600_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_160_600_price" value="15.00"></td>
</tr>
<tr>
<td><strong>250x250</strong></td>
<td>$15.00</td>
<td><input name="s_250_250_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_250_250_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_250_250_price" value="15.00"></td>
</tr>
<tr>
<td><strong><strong>300x250</strong></strong></td>
<td>$15.00</td>
<td><input name="s_300_250_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_300_250_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_300_250_price" value="15.00"></td>
</tr>
<tr>
<td><strong>468x60</strong></td>
<td>$15.00</td>
<td><input name="s_468_60_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_468_60_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_468_60_price" value="15.00"></td>
</tr>
<tr>
<td><strong>728x90</strong></td>
<td>$15.00</td>
<td><input name="s_728_90_qty" type="text" value="0" onchange="getProductTotal(this,this.form)"
onclick="checkValue(this)" onblur="reCheckValue(this)"/></td>
<td class="ill">$<input name="s_728_90_tot" type="text" value="0" readonly onfocus="this.blur()"/>
<input type="hidden" name="s_728_90_price" value="15.00"></td>
</tr>
</table>
<div class="price_total">
<strong>Grand Total: $<span id="grandTotal">0.00</span></strong>

Check this box is you like to buy the .PSD file(s): <input name="require_psd" type="checkbox" value="yes"/>
</div>
<ul id="text_info">
<li class="second">
<h4>Please mention the text you want on the banner (<strong>Required</strong>)</h4>
<textarea name="banner_text" cols="" rows="" id="bannerText"></textarea>
</li>
<li>
<h4>Special Instructions:</h4>

<p>Please provide information that may help us create your banner. eg. URL of product,
colors, examples, filesize limit.</p>
<textarea name="instruction" cols="" rows="" id="instruction"></textarea>
</li>
</ul>
<div id="payment">
<ul>
<li><label>Your Name: <input name="name" id="name" type="text"/></label></li>
<li><label>Email Address: <input name="email" id="email" type="text"/></label></li>
<li><label>Verify Email: <input name="ver_email" id="ver_email" type="text"/></label></li>
<li><label>Company: <input name="company" id="company" type="text"/></label></li>
<li><label>Website URL: <input name="web" id="web" type="text"/></label></li>
<li class="ill"><input name="order" id="order" type="image"
src="images/place_my_order.gif"/></li>
</ul>
<div id="payment_r">
<div id="before_proceed" class="mode">
<h2>Before You Proceed!</h2>

<p>We highly recommend you to read our terms and conditions before you proceed. </p>


Înapoi la “PHP Incepători”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 18 vizitatori