doutui4649 2013-12-09 08:42
浏览 59

填写CSS表单测试的URL

I wrote this simple form, but I don't know theory about filling form. In future I want filling my form from MySQL, but now I need somehow test my form:

<table>                             
    <tr>
        <td><p style="text-align: right">name:</p></td>                   
        <th><p style="text-align: left">',$name,'</p></th>                     
    </tr>                        
    <tr>
        <td><p style="text-align: right">age:</p></td>                   
        <th><p style="text-align: left">',$age,'</p></th>                     
    </tr>                       
    <tr>   
        <td><p style="text-align: right">place:</p></td>                   
        <th><p style="text-align: left">',$place,'</p></th>                     
    </tr>                                                                        
</table>

So, I need replace $name, $age, $place in url like: http://test.mydomain.com/testform.php?name="Name Example"... How can I write/get url in correct form for result name: Name Example, not name: ',$name,'?

  • 写回答

2条回答 默认 最新

  • douxiuar885064 2013-12-09 08:50
    关注

    If I understand you right, you want to make something like this: http://www.w3schools.com/php/php_form_complete.asp


    You can check out the w3schools page about php form handling here: http://www.w3schools.com/php/php_forms.asp

    Everything is explained over here. (If I understand you right). Is this what you are looking for?

    评论

报告相同问题?