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 8788807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:13:47+00:00 2026-06-13T22:13:47+00:00

So I have the following code: <div id=currentmotto><?php mottoGrab($name); ?></div> And what this does

  • 0

So I have the following code:

<div id="currentmotto"><?php mottoGrab($name); ?></div>

And what this does is it uses curl to screen scrape a users motto and display it on the site. What I need it to do is for that function to refresh every few seconds to see if the user has updated the motto.

I know with jquery I can use the .load(‘phpfile.php’) but the problem then is if I put that function in that file, it no longer gets the $name variable as that is from another page.

Any ideas?

  • 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-06-13T22:13:49+00:00Added an answer on June 13, 2026 at 10:13 pm

    Pass name to phpfile.php via the query string:

    .load(‘phpfile.php?name=THENAME’);

    Then grab the name from within phpfile.php using $_GET[‘name’] and stick it in the function.

    OR

    Make an AJAX request passing the name and update the page using javascript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following PHP code $val=<div id=user.$row['cid']. userid=.$row['cid']. class=innertxt><img src=images/images.jpg width=50 height=50><strong>.$uname.</strong><ul> <li>Email: .$row['cemail'].</li>
I have the following code: <div id=content> <?php if(count($app->getMessageQueue())) { ?> <jdoc:include type=message />
I have the following code: <div id=object-container> <object data=some-file.swf> <param name=src value=some-file.swf /> </object>
I have the following code select box div: Make:<br> <select name=Make> <option value =
I have the following code : $('div[class^=locked_]').click(function() { var newThis = $(this) ; $(this).load(url
I have following code: <div class=question> <span class=text_area> <textarea name=text1 id=response1 rows=3 cols=50/> </span>
I have the following code so far: $('div.welcome-handle').click(function() { top.$('#welcome-message').toggle(function() { $(this).animate({left: -=749px}, 500);
I have the following code : <div id=wrapper> <div style=width:500px;background-color:yellow;> // this is a
I have the following code: <div class='menu'> <div class='menu_1'> <a href='../test.php'>JOBS</a> </div> <div class='menu_2'>
I have the following jQuery code-- $('div#mid_number_of_mail').mouseover(function () { setTimeout(function () { $('div.element_popup' ,this).stop().animate({

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.