这就是我所拥有的。我想在将客户交给贝宝之前捕获这些价值。这是为了在我的表格中保存客户提供的送货地址和电子邮件:
<?php $countries = array(
'af' => 'Afganistan',
'al' => 'Albania',
//...
'zm' => 'Zambia',
'zw' => 'Zimbabwe'
); ?>
<div class="section">
<h3>Customer Details</h3>
<hr />
<div class="user-form">
<div class="user-header">Personal Info</div>
<div class="user-section showBorder">
<label>Full Name:</label>
<?php echo $this->Form->input('fullname',array('label'=>false, 'class'=>'user-field'));?>
<label>Contact Number:</label>
<?php echo $this->Form->input('contactnumber',array('label'=>false, 'class'=>'user-field'));?>
<label>Email:</label>
<?php echo $this->Form->input('email',array('label'=>false, 'class'=>'user-field'));?>
</div>
<div class="user-header">Delivery Address</div>
<div class="user-section showBorder">
<label>Address Line 1</label>
<?php echo $this->Form->input('address1',array('label'=>false, 'class'=>'user-field'));?>
<label>Address Line 2</label>
<?php echo $this->Form->input('address1',array('label'=>false, 'class'=>'user-field'));?>
<label>City</label>
<?php echo $this->Form->input('city',array('label'=>false, 'class'=>'user-field'));?>
<label>State/Province/Region:</label>
<?php echo $this->Form->input('state',array('label'=>false, 'class'=>'user-field'));?>
<label>Zip Code:</label>
<?php echo $this->Form->input('zip',array('label'=>false, 'class'=>'user-field'));?>
<label>Country: </label>
<div>
<?php echo $this->Form->select('country',$countries,array('label'=>false, 'class'=>'user-select'));?>
</div>
</div>
<div class="user-submit">
<?php echo $this->Form->submit('Ship to other Address',array('class'=>'customButton'));?>
</div>
</div>
</div>
是否可以这样做,或者 IPN 可以帮助我将这些数据保存在我的数据库中?