PHP output_add_rewrite_var() လုပ်ဆောင်ချက်
❮ PHP အထွက်ထိန်းချုပ်မှုလုပ်ဆောင်ချက်များ
ဥပမာ
အထွက်ရှိ URL များသို့ ကိန်းရှင်များကို ထည့်ပါ-
<?php
// Make the URL rewriter affect <a href> and <form> tags
ini_set('url_rewriter.tags','a=href,form=');
// Add a variable
output_add_rewrite_var('var', 'value');
// Output a link and a form
echo '<a href="">This link\'s URL will have a variable</a>';
echo '<form>';
echo '<p>This form will have a hidden input</p>';
echo '<input type="text"
name="hello">';
echo
'</form>';
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
လုပ်ဆောင်ချက် သည် output_add_rewrite_var()
HTML တဂ်များတွင် URLs များနှင့် ပုံစံများသို့ လျှို့ဝှက်ထည့်သွင်းမှုများကို ထည့်သွင်းပေးသည်။ url_rewriter.tags
သက်ရောက်မှုရှိသော tags များသည် php.ini ရှိ ဆက်တင်၏ ဖွဲ့စည်းပုံအပေါ်မူတည်
ပါသည်။
အထားအသို
output_add_rewrite_var(name, value);
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
name | The name of the variable to be added to URLs and the content of the name attribute of hidden inputs in forms. |
value | The value of the variable to be added to URLs and the content of the value attribute of hidden inputs in forms. |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | အောင်မြင်မှုအပေါ် သစ္စာ၊ ကျရှုံးမှုတွင် မှားသည်။ |
---|---|
PHP ဗားရှင်း- | 4.3+ |
❮ PHP အထွက်ထိန်းချုပ်မှုလုပ်ဆောင်ချက်များ