简单的代码问题 [英] simple Code Question

查看:49
本文介绍了简单的代码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有一个简单的虚拟旅游网站。在这个时候,我不能雇用一个程序员来完成我想要的一切,所以我尽我所能让它暂时发挥功能尽可能地使用开箱即用的模板。我想在我的网站前面添加一个简单的功能。这个网站是www.towncenter.com我将游览存储在主页面的目录中...例如我最近的一次游览我给了一个代码为242的代码。所以URL将是http://www.towncenter.com/242 ....我想在主页上添加一个简单的文本框,允许使用242输入输入,他们将被定向到http://www.towncenter.com/242 ...有些人只是不明白如何在地址栏中输入242自己...


我会非常感谢这方面的帮助,我对其他网站的建议非常开放...感谢您的时间...


此致,


John

解决方案

您的主题标题并未对其内容说太多。无论如何,这个片段会做[php]<?php

if(isset(


_POST [''number''])){

header(''Location:http://www.towncenter.com/''.stripslashes(


_POST [''number'']));

退出;

}

else {

echo''< form method =" post"行动= QUOT;

I own a simple Virtual Tour Site. At this time I can''t afford to hire a programmer to make it everything that I want so I am trying my best to have it function for the time being as best as I can using out of the box templates. I would like to add a simple feature to the front of my site. This site is www.towncenter.com I store the tours in directories off of the main page... For example a recent tour I shot I gave a code of "242" so the URL would be http://www.towncenter.com/242 .... I would like to add a simple text box on the main page that would allow the use to put in 242 hit enter and they would be directed to http://www.towncenter.com/242 ... Some people just don''t understand how to type in the 242 themselves in the address bar...

I would really appreciate help with this and I am very open to any other site suggestions... Thanks for your time...

Sincerely,

John

解决方案

The title of your thread doesn''t say very much about its content. Anyway, this snippet will do it[php]<?php
if (isset(


_POST[''number''])) {
header(''Location: http://www.towncenter.com/''.stripslashes(


_POST[''number'']));
exit;
}
else {
echo ''<form method="post" action="''.


这篇关于简单的代码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆