关联数组

有三种数组类型:

数值数组
带有数字 ID 键的数组

例子 1

在这个例子中,会自动分配 ID 键:

$names = array("Peter","Quagmire","Joe");

例子 2

在这个例子中,我们人工分配的 ID 键:

$names[0] = "Peter";
$names[1] = "Quagmire";
$names[2] = "Joe";

 

关联数组
数组中的每个 ID 键关联一个值
<?php

$ages['Peter'] = "32";
$ages['Quagmire'] = "30";
$ages['Joe'] = "34";

echo "Peter is " . $ages['Peter'] . " years old.";
?>

以上脚本的输出:

Peter is 32 years old.
多维数组
包含一个或多个数组的数组
发表在 PHP | 留下评论

godaddy email sent problem

一   must be  UPDATE TO IIS7.0
 
二 

 Specify the Email Address for the Form-Mailer

  1. Log in to your Account Manager.
  2. From the Products section, click Web Hosting.
  3. Next to the hosting account you want to use, click Launch.
  4. In the Content section of the Hosting Control Center, click the Form Mail icon.
  5. Under the Forms Email Address section, type the email address you want to use with your form-mailer.
  6. Click Continue.
  7. Reinstall default scripts directory   —must do
  8. Verify that this is the address you want to use with your form-mailer, and click Update.

三 


Our support staff has responded to your request, details of which are described below:

Discussion Notes
Support Staff Response
Dear ping ping,

Thank you for your reply.

Two form mailers are included with new Windows shared hosting accounts: webformmailer.asp and gdform.php. To use a form mailer, create a Web form in HTML that links to one of our scripts and upload it to your hosting account.

NOTE: Do not use test@test.com to test your form mailer.

WARNING: The gdform.asp and gdform.php files cannot be recovered if they are deleted.

The form mailers are not installed until you specify the email address you want to use with the form mailer in your account manager. For more information, see Specifying an Email Address for the ASP Form-Mailer.

webformmailer.asp

To Use webformmailer.asp

  1. Create a Web form, assigning unique names to your form fields.
  2. In the form tag, assign _gdForm/webformmailer.asp to the action attribute and set the form method to post:
    <form action="_gdForm/webformmailer.asp" method="post">

  3. gdform.php
    Only Windows accounts running IIS7 can use gdform.php.

To Use gdform.php

  1. Create your Web form as normal and assign unique names to your form items.

    NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers.

    For the form action line, enter /gdform.php. For example:

  2. <form action="/gdform.php" method="post">

    Set the form method to "post."

  3. In addition to the fields you create in your form, there are three special fields that you can use: subject, redirect, and email.

    Subject. Controls the subject line in the form email.

    Redirect. Controls the page that your visitors will see after they submit the form.

    Email. Controls the return address for the form email.

    For example:

    <form action="/gdform.php" method="post">
    <input type="hidden" name="subject" value="Form Submission" />
    <input type="hidden" name="redirect" value="thankyou.html" />
    <p>First Name:<input type="text" name="FirstName" /></p>
    <p>Last Name:<input type="text" name="LastName" /></p>
    <p>E-Mail:<input type="text" name="email" /></p>
    <p>Comments:<textarea name="comments" cols="40" rows="10">
    Type comments here.</textarea></p>
    <input type="submit" name="submit" value="submit"/>
    </form>
  4. Save and upload your file to your hosting account.

发表在 PHP | 留下评论

JQUERY FIRST PROJECT

发表在 JQUERY | 留下评论

CSS :hover 伪类

这个伪类应用处于“悬停状态”的元素。悬停定义为用户指示了一个元素但没有将其激活。对此最常见的例子是将鼠标指针移到 HTML 文档中一个超链接的边界范围内。理论上,其他元素也可以处于悬停状态,不过 CSS 没有定义究竟是哪些元素。

激活的、已访问的、未访问的或者当有鼠标悬停在其上的链接,它们会在支持 CSS 的浏览器中以不同的方式显示出来:

a:link {color: #FF0000}     /* 未访问的链接 */
a:visited {color: #00FF00}  /* 已访问的链接 */
a:hover {color: #FF00FF}    /* 当有鼠标悬停在链接上 */
a:active {color: #0000FF}   /* 被选择的链接 */

注释:为了产生预期的效果,在 CSS 定义中,a:hover 必须位于 a:link 和 a:visited 之后!!

注释:为了产生预期的效果,在 CSS 定义中,a:active 必须位于 a:hover 之后!!

注释:Pseudo-class(伪类)的名称对大小写不敏感。

注释:伪类可与 CSS 类配合使用:

发表在 CSS | 留下评论

《无情的雨无情的你》

发表在 音乐 | 留下评论

pesshop log

pesshop titile
 
1
 
 
 
 
 
 
 
 
4
 
 
发表在 photoshop | 留下评论

修复照片

设计在线 > 美工教室 > photoshop >照片处理:Photoshop修复残破照片

产品网页图片下载
 

照片处理:Photoshop修复残破照片

2005-10-13 10:49作者:东正科技出处:《Photoshop数码照片艺术效果100例》责任编辑:Shiny

 

  效果描述 本实例介绍怎样对残破的照片进行修补,如图 32-1 所示,这是一张珍贵的旧照片,照片的边角缺损了,利用原有的图片进行修补,使其成为一张完整的图片,如图 32-2 所示。

  创作思路 观察整个图片的残缺部分,用不同的手法进行修补图像,残缺区域比较大的地方,先用【矩形选框】工具圈出选区,复制出图层,对图像进行修补。对比较细致的地方使用【仿制图章工具】进行修补。

  操作步骤

  (1) 打开文件。使用 Photoshop CS 打开素材图片。

  (2) 圈出选区。使用【矩形选框工具】圈出选区,如图 32-4 所示。

  (3) 使用【自由变换】命令。按 Ctrl+J 快速复制出图层,再对新复制的层使用【自由变换】命令,如图 32-5 所示。

  (4) 拉伸填补图像。在【自由变换】命令的基础上进行拉伸,填补残缺图像,如图 32-6 所示,

  (5) 合并图层。选择【图层】|【合并可见图层】命令合并图层,如图 32-7 所示。

  (6) 修复残缺图像。使用【仿制图章工具】修复照片残缺部分,如图 32-8 所示。

  (7) 完成操作。整个实例操作完毕,效果如图 32-9 所示。

发表在 photoshop | 留下评论