Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 837541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:09:26+00:00 2026-05-15T05:09:26+00:00

I use the $_GET function to pull a value with php from the url

  • 0

I use the $_GET function to pull a value with php from the url (http:…./index.html?variable=value), basic stuff. However, I need to use that value in my form.

Typically, I would set

<?php echo 'value="'.$variable.'"' ; ?>

or something to that effect. However, I can’t use php inside my form using the editor I’m working with.

Can I set a value in the form without using PHP in my form? If so, how?

Edit:
with the CMS editor I’m using you can’t store php code to the server. (I’m using FCKeditor. The same used by Dubral). This is a security measure all CMS’s use even WordPress. Basically I want to send/set the value in the form with php. Similar to how javascript does it: document.form.field.value

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:09:27+00:00Added an answer on May 15, 2026 at 5:09 am

    The best way to set default values (ie pre-existing values) within an HTML form is as you mentioned in your question value="'.$variable.'"'.

    If you are unable to use markup like that, then you may be able to use javascript (whether referencing a secondary file/feed using AJAX, or using the same variable echoing technique) to replace the values in the specific fields after the page has loaded.

    ie

    <script type="text/javascript">
    document.form[0].name.value = "<?php echo $name; ?>";
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use this function to pull data from Foursquare through yahoo
As we know, we could use GetProcAddress to get a function pointer from a
I am trying to use a variable to get a function in a extended
I am trying to use my own function to get the file size from
Do I need to use JSON to transfer data from external PHP server to
I am trying to use JQuery to pull a binary file from a webserver,
<?php session_start(); require_once('JSON.php'); $url= 'http://ajax.googleapis.com/ajax/services/search/web?rsz=large&v=1.0&q='. $_POST['searchquery'].'&key=ABQIAAAA4oH5MwaexHdhZg4UWRNB1RT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTzUf4N43torAasiY6JD5CaJS6n7Q&userip=http://localhost/'; echo $url; // use fopen and fread to
I'm trying to use JAXB to pull some elements from a large XML file
I wanna get the Timedate value from another page using request.querystring and then use
Trying to pull info from one JSON datafeed and use that to make another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.