返信ありがとうございます!
丁寧な説明まで・・・ 分かり辛い説明ですみません・・・!
submitになってます。inputボタンとは言わないんですね、気をつけます
すいません サーバのphpスクリプトというのが わからなくて
先ほどの jump() はサーバのphpスクリプトでしょうか・・・
あっ checkform() は JavaScriptではないです。JavaScriptは使っていないです。
PHPなら携帯でもいけるかなと安易に思っているのですが・・・
フォームの部分は
最初の表示がこちらで
- function formbox(){
- echo '<form action="'._THIS.'" method="post">
- <input name="message" type="text" class="massage" />
- <input name="check" type="submit" class="conf" value="conf" />
- </form>';
- }
再表示される画面です
- function checkform(){
- $msg = htmlspecialchars($_POST['message']);
-
- if($msg==""){
- echo "<p>中身が空のようです</p>";
- echo '<form action="'._THIS.'" method="post">
- <input name="return" type="submit" class="return" value="return" />
- </form>';
- }else{
- echo "\n".'<form action="'._THIS.'" method="post">
- <p>以下の内容で送信します。よろしいですか?</p>
- <p class="massage">'.$msg.'</p>
- <input name="message" type="hidden" value="'.$msg.'" />
- <input name="submit" type="submit" class="send" value="send" />
- <input name="return" type="submit" class="return" value="return" />
- </form>';
- }
- }
こちらのような動きにしようとしました (下のプレーンタイプのエラー表示です)
http://www.ninja.co.jp/mailform/sample.html 
kende様のご指摘通り、三項演算子を使用する際には、コードの複雑度などを考慮する必要がありますね。書きやすさと共に可読性も追求したいところですね。